#include <bits/stdc++.h>
using namespace std;
int n, m, x;
int a[300001];
int main() {
  scanf("%d", &n);
  m = n;
  printf("1");
  for (int i = n - 1; i >= 0; i--) {
    scanf("%d", &x);
    a[x] = 1;
    if (x == m)
      while (a[m] != 0) m--;
    printf(" %d", m - i + 1);
  }
}
