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