#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long a[110], x = 1;
  vector<long long> ans;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] == x) {
      x++;
      ans.push_back(i + 1);
    }
  }
  cout << ans.size() << '\n';
  long long L = ans.size();
  for (long long i = 0; i < L; i++) cout << ans[i] + 2000 << ' ';
  return 0;
}
