Black Friday

No attempts yetTime limit1sMemory limit256 MB

Problem

Black Friday is the Friday right after Thanksgiving Day in the United States (the fourth Thursday of November). Since the early 2000s it has been treated there as the start of the Christmas shopping season, and most large retailers open very early and run promotional sales.

You work in the IT support division of an electronics store. To keep the store from getting crowded, management decided this year to limit how many people come in at once. The people waiting at the entrance are split into groups of nn, and each group is handled as follows. All nn members roll a die and report the outcomes a1,a2,,ana_1, a_2, \dots, a_n. To prevent cheating, the store does not pick the person with the largest outcome. It picks the person with the largest outcome among the outcomes that exactly one person rolled. Everyone who is not picked moves to the back of the queue. If nobody is picked, the group rolls again.

For example, if three people roll 6, 6 and 5, the third person is picked. The first two rolled higher, but their outcomes are equal, so they are out. If the third person also rolls 6, nobody is picked.

Write a program that reads the rolls of one group and reports who is picked.

Input

The first line contains the group size nn (1n1001 \le n \le 100). The second line contains the nn outcomes a1,a2,,ana_1, a_2, \dots, a_n, separated by spaces (1ai61 \le a_i \le 6).

Output

Print the number of the person with the largest outcome among the outcomes that exactly one person rolled. People are numbered from 11 to nn in input order. If no outcome was rolled by exactly one person, print none.