#include <bits/stdc++.h>
using namespace std;
long long bucket[3 * 100010];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, counter = 1, i, a, r;
  cin >> n;
  r = n;
  cout << 1 << " ";
  for (i = 0; i < n; i++) {
    cin >> a;
    counter++;
    bucket[a] = 1;
    while (bucket[r]) {
      r--;
      counter--;
    }
    cout << counter << " ";
  }
  return 0;
}
