#d1106. 选数

选数

Selecting Numbers

Problem Description

Given nn positive integers a1,a2,…,ana_1, a_2, \dots, a_n. Choose some of them such that the sum of the chosen numbers satisfies  mod  n=0\bmod\ n = 0 (each index may be chosen at most once).

Input Format

The first line contains an integer nn, the number of values.

The next line contains nn integers a1,a2,…,ana_1, a_2, \dots, a_n.

Output Format

On the first line, output MM, the number of chosen numbers.

On the second line, output MM positive integers separated by spaces — the indices of the chosen numbers.

If there are multiple valid solutions, output any one of them.

If no valid solution exists, output −1-1.

Sample Input

4
1 3 2 5

Sample Output

2
2 4

Sample Explanation

3+5=83 + 5 = 8, and 8 mod 4=08 \bmod 4 = 0.

Constraints

All data satisfy 1≤n≤1000001 \le n \le 100000 and 1≤ai≤1091 \le a_i \le 10^9.