Today, Fallleaves01 and his n−1n-1n−1 friends went out for dinner. They intend to order a total of kkk dishes. To ensure everyone gets their favorite dish, they decided to take turns ordering one dish each in sequential order(i.e., 1st person, 2nd person, ..., nnn-th person, 1st person, ...) and repeat until they have ordered a total of kkk dishes.
Please be aware that the dishes ordered by one person can be shared and tasted by everyone. To ensure a wide variety of flavors and experiences, it is important for individuals to avoid ordering the same dish multiple times.
There are a total of mmm dishes available for selection. Everyone knows each person's preferences for every dish. This information is represented by an n×mn\times mn×m matrix called AAA, where Ai,jA_{i,j}Ai,j denotes the degree to which the iii-th person likes the jjj-th dish.
Assume that each person only cares about their own enjoyment of the dishes without considering others. In other words,if they ultimately choose dishes p1,p2...,pkp_1,p_2..., p_kp1,p2...,pk, person iii aims to maximize ∑1≤j≤kAi,pj\sum_{1 \leq j \leq k} A_{i,p_j}∑1≤j≤kAi,pj.
We also found that for every different 1≤x,y≤m,Ai,x≠Ai,y1 \leq x,y \leq m, A_{i,x} \neq A_{i,y}1≤x,y≤m,Ai,x=Ai,y.
Fallleaves01 is curious to know what dishes will be on the table if everyone makes optimal decisions.