#include <bits/stdc++.h>
using namespace std;
int a[100];
vector<int> res;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int k = 1;
  for (int i = 0; i < n; i++)
    if (a[i] == k) {
      res.push_back(2001 + i);
      k++;
    }
  cout << res.size() << endl;
  if (res.size()) {
    cout << res[0];
    for (unsigned int i = 1; i < res.size(); i++) cout << " " << res[i];
    cout << endl;
  }
  return 0;
}
