Pls explain me one thing. Dish Owner

Sry guys, in this problem http://www.codechef.com/JULY14/problems/DISHOWN/
when we got x and y, or just y, what we got? the score of dish, or position dish which sequense we taken? Pls explain. And one more thing:
in every battle everyone of chef took the higher score dish of his all dishes or dish about x and y we got.

Sry, for my english.

x and y is the index of the position of the chef. It meand 0 1 5 means first chef is competing against 5th chef. For second part with every game won by chef x , all the dishes won by chef y before the competition will be now of chef x

i think enough information is given in the problem statement…please read it carefully…