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