#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int a[101];
  int q, k = 1;
  for (int i = 0; i < n; i++) {
    scanf("%d", &q);
    if (q == k) a[k] = i + 2001, k++;
  }
  printf("%d\n", k - 1);
  for (int i = 1; i < k; i++) printf("%d ", a[i]);
  return 0;
}
