As we all know, TT is a girl who eats thousands and thousands of foods and never tired of it. One day, Mr.Cai decides to punish TT, he transformd TT into a greedy cat :-P. But the little TT hits Mr.Cai and shouts:"Pakchoi, I will never give up eating!". To calm the little greedy cat down, Mr.Cai have to give some food to her. But Mr.Cai set a rule that TT can carry at most ten things, when beyond ten, the little TT will be forced to hand in the first one.Note that Mr.Cai gives one by one.
A B G D U 0
A B G D U