acmsguru |
---|
Finished |
-1" (without the quotes) in a single output line.
sample input | sample output |
10 4 2 0 1 5 2 5 2 5 5 5 5 5 2 1 4 6 1 1 2 7 1 3 7 10 7 9 10 7 8 8 5 | 6 2 4 10 |
sample input | sample output |
4 1 2 1 2 9 9 9 9 1 2 2 3 3 4 | -1 |
Name |
---|