#include <bits/stdc++.h>
using namespace std;
const int N = 2.1e5;
int n, a[N];
int main() {
  scanf("%d", &n);
  int s = 0;
  for (int i = 0; i < n; ++i) {
    scanf("%d", a + i);
    s += a[i];
  }
  vector<int> ans;
  for (int i = 0; i < n; ++i)
    if (a[i] * n == s) ans.push_back(i + 1);
  printf("%d\n", ans.size());
  for (int x : ans) printf("%d ", x);
  puts("");
  return 0;
}
