#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  bool pos[300001];
  int free = n;
  int num = 0;
  memset(pos, true, sizeof(pos));
  cout << 1 << " ";
  for (int i = 0; i < n; i++) {
    int c;
    cin >> c;
    pos[c] = false;
    if (free == c) {
      while (!pos[free]) {
        free--;
        num++;
      }
    }
    cout << i + 2 - num << " ";
  }
  cout << endl;
}
