#include <bits/stdc++.h>
using namespace std;
int n, ans[100], len, a, cur;
int main() {
  cur = 1;
  cin >> n;
  for (int i = 0; i < (n); ++i) {
    cin >> a;
    if (a == cur) {
      ans[len++] = 2001 + i;
      cur++;
    }
  }
  cout << len << endl;
  for (int i = 0; i < (len); ++i) cout << ans[i] << " ";
  return 0;
}
