IOI highschool has a plan to go on a school excursion. To decide where to go, the student council
of the school has sent out questionaire to
Input
The first line of the file
contains two integers, 1
and NG by 0
. Those 1
's and 0
's should be separated by a space character. The j-th 0
/1
is the
answer to the j-th destination.
Output
The output should contain a single line containing
Sample Input
4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
Sample Output
1 3 2 5 4 6
Comments