#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, j, k, l, arr[300], brr[300] = {};
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%d", &arr[i]);
  l = 0;
  k = 0;
  for (i = 0; i < n; i++) {
    if (arr[i] == l + 1) {
      brr[k++] = i + 1;
      l++;
    }
  }
  printf("%d\n", k);
  for (i = 0; i < k; i++) printf("%d ", 2000 + brr[i]);
}
