#include <bits/stdc++.h>
int a[111], f[111];
int main() {
  int n;
  while (~scanf("%d", &n)) {
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
    }
    int flag = 1, cnt = 0;
    memset(f, 0, sizeof(f));
    for (int i = 0; i < n; i++) {
      if (a[i] == flag) {
        cnt++;
        f[i] = 1;
        flag++;
      }
    }
    printf("%d\n", cnt);
    int t = 0;
    for (int i = 0; i < n; i++) {
      if (f[i]) {
        t++;
        printf("%d", 2001 + i);
        t < cnt ? putchar(' ') : putchar('\n');
      }
    }
  }
  return 0;
}
