#include <bits/stdc++.h>
const int MaxSize = 1e5 + 5;
using namespace std;
int n;
vector<int> Ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
  int Check = 1;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    if (x == Check) Ans.push_back(2000 + i + 1), Check++;
  }
  printf("%d\n", (int)Ans.size());
  for (int i = 0; i < (int)Ans.size(); i++) printf("%d ", Ans[i]);
}
