#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int in_game = 0;
  cout << in_game + 1 << " ";
  vector<bool> coin;
  coin.resize(n + 1);
  int last = n;
  for (int i = 0; i < n; ++i) {
    int temp;
    cin >> temp;
    ++in_game;
    coin[temp] = 1;
    if (temp == last) {
      while (coin[last] && last) {
        --last;
        --in_game;
      }
    }
    cout << in_game + 1 << " ";
  }
  return 0;
}
