Codeforces Testing Round 3
A
Average Numbers
Codeforces
1200
原题
←B →
翻译中…

You are given a sequence of positive integers $*a*_{1}, *a*_{2}, ..., *a*_{*n*}$. Find all such indices $*i*$, that the $*i*$-th element equals the arithmetic mean of all other elements (that is all elements except for this one).

翻译中…

Input

翻译中…

The first line contains the integer $*n*$ ($2 ≤ *n* ≤ 2·10^{5}$). The second line contains elements of the sequence $*a*_{1}, *a*_{2}, ..., *a*_{*n*}$ ($1 ≤ *a*_{*i*} ≤ 1000$). All the elements are positive integers.

翻译中…

Output

翻译中…

Print on the first line the number of the sought indices. Print on the second line the sought indices in the increasing order. All indices are integers from $1$ to $*n*$.

翻译中…

If the sought elements do not exist, then the first output line should contain number $0$. In this case you may either not print the second line or print an empty line.

翻译中…

样例

Input #1
5
1 2 3 4 5
Output #1
1
3
InputCopy OutputCopy
Input #2
4
50 50 50 50
Output #2
4
1 2 3 4
InputCopy OutputCopy
题目信息
题号
134A
时间限制
1 s
内存限制
256 MB
标签
暴力
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。