#include <bits/stdc++.h>
using namespace std;
int a[110], ans[110];
int main() {
  int i, j, n, sta = 1, cnt = 0, f = 0, c;
  scanf("%d", &n);
  memset(ans, 0, sizeof(ans));
  for (i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    if (a[i] > 0) f = 1;
  }
  if (!f)
    printf("0\n");
  else {
    sta = c = 1;
    for (i = 1; i <= n; i++)
      if (a[i] == sta) {
        cnt++;
        sta++;
        ans[c++] = i + 2000;
      }
    if (sta == 1)
      printf("0\n");
    else {
      printf("%d\n", cnt);
      printf("%d", ans[1]);
      for (i = 2; i < c; i++) printf(" %d", ans[i]);
      printf("\n");
    }
  }
  return 0;
}
