#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, pi;
  scanf("%d", &n);
  int p[n + 1], last_old = n;
  for (int i = 0; i <= n; i++) p[i] = 0;
  printf("1");
  for (int i = 0; i < n; i++) {
    scanf("%d", &pi);
    p[pi] = 1;
    if (pi == last_old) {
      while (p[last_old]) last_old--;
    }
    printf(" %d", i - n + last_old + 2);
  }
  printf("\n");
  cin >> n;
}
