#include <bits/stdc++.h>
using namespace std;
int n, x, last;
bool was[300300];
int main() {
  cin >> n;
  last = n;
  printf("1 ");
  for (int i = 0; i < n; ++i) {
    scanf("%d", &x);
    was[x] = true;
    while (last > 0 && was[last]) last--;
    printf("%d ", (i + 1) - (n - last) + 1);
  }
  return 0;
}
