#include <bits/stdc++.h>
using namespace std;
int arr[1000001], sum, cnt, re[1000001];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  for (int i = 0; i < n; i++)
    if (sum == arr[i] * n) {
      cnt++;
      re[cnt] = i + 1;
    }
  cout << cnt << endl;
  for (int i = 1; i <= cnt; i++) cout << re[i] << " ";
}
