#include <bits/stdc++.h>
using namespace std;
int n;
int arr[103];
vector<int> v;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int k = 1;
  for (int i = 0; i < n; i++) {
    if (arr[i] == k) {
      k++;
      v.push_back(i + 2001);
    }
  }
  if (v.empty()) {
    cout << 0 << "\n";
    return 0;
  }
  cout << v.size() << "\n";
  for (int x : v) cout << x << " ";
  return 0;
}
