#include <bits/stdc++.h>
using namespace std;
int n, i, key, x, len, a[111];
int main() {
  scanf("%d", &n);
  key = 1;
  for (i = 1; i <= n; ++i) {
    scanf("%d", &x);
    if (x == key) a[++len] = 2000 + i, ++key;
  }
  printf("%d\n", len);
  for (i = 1; i <= len; ++i) printf("%d ", a[i]);
  printf("\n");
  return 0;
}
