#include <bits/stdc++.h>
using namespace std;
int v[300100];
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int cont = 0;
  cout << "1 ";
  for (int i = 0; i < n; i++) {
    int p;
    cin >> p;
    v[p] = 1;
    if (p == n - cont)
      while (v[p--]) cont++;
    cout << i + 2 - cont << " ";
  }
  return 0;
}
