#include <bits/stdc++.h>
using namespace std;
int n, a[300002];
int main() {
  cin >> n;
  putchar('1');
  for (int i = 1, p = n + 1, x; i <= n; i++) {
    scanf("%d", &x);
    a[x] = 1;
    for (; p > 1 && a[p - 1]; --p)
      ;
    printf(" %d", p + i - n);
  }
  return cout << endl, 0;
}
