#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  bool flag[300001] = {false};
  int coin;
  int index = n;
  int ans = 1;
  cout << 1 << " ";
  for (int i = 0; i < n; i++) {
    cin >> coin;
    ans++;
    flag[coin] = true;
    if (coin == index) {
      while (flag[index]) {
        index--;
        ans--;
      }
    }
    cout << ans << " ";
  }
  cout << endl;
  return 0;
}
