#include <bits/stdc++.h>
using namespace std;
int n, A[105], anio, cont, salida[105], k2;
int main() {
  cin >> n;
  cont = 1;
  anio = 2001;
  k2 = 0;
  for (int i = 0; i < n; i++) {
    cin >> A[i];
  }
  for (int i = 0; i < n; i++) {
    if (A[i] == cont) {
      salida[k2] = anio;
      cont++;
      k2++;
    }
    anio++;
  }
  if (k2 == 0)
    cout << 0;
  else {
    cout << k2 << endl;
    for (int i = 0; i < k2; i++) {
      cout << salida[i] << " ";
    }
  }
  return 0;
}
