#CCBCHBAHAI0000161. Phát hiện gián điệp (Spy Detected!)

Phát hiện gián điệp (Spy Detected!)

Spy Detected!

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem

Given an array of nn positive integers. One value occurs exactly n−1n-1 times and one different value occurs exactly once. Find the 1-based position of the unique different element.

Input

  • Line 1: integer nn.
  • Line 2: nn integers a1,a2,…,ana_1,a_2,\ldots,a_n.

Output

Print the required 1-based position.

Subtask

Subtask 1 (100 points): 3≤n≤1003\le n\le100; 1≤ai≤1001\le a_i\le100; exactly one value differs from all others.

Example

Input

4
11 13 11 11

Output

2

Explanation

1111 occurs three times while 1313 occurs once at position 22.