#include <bits/stdc++.h>
using namespace std;
const int INF = 2000000000;
const double EPS = 1e-9;
int mods(int a, int b) { return (b + (a % b)) % b; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, a, cur = 1, A[105], k = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a == cur) {
      A[k++] = 2001 + i;
      cur++;
    }
  }
  cout << k << '\n';
  for (int i = 0; i < k; i++) {
    if (i) cout << " ";
    cout << A[i];
  }
  cout << '\n';
  return 0;
}
