#include <bits/stdc++.h>
const int maxn = 100;
int main() {
  int a[maxn], b[maxn];
  int n, m;
  int need;
  int i;
  using std::cin;
  using std::cout;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  need = 1;
  m = 0;
  for (i = 0; i < n; i++) {
    if (a[i] == need) {
      b[m++] = 2001 + i;
      need++;
    }
  }
  if (need > 1) {
    cout << m << '\n';
    for (i = 0; i < m; i++) {
      cout << b[i];
      cout << (i == n - 1 ? '\n' : ' ');
    }
  } else {
    cout << "0\n";
  }
  return 0;
}
