#include <bits/stdc++.h>
using namespace std;
long long n;
vector<long long> a(300500);
vector<bool> used(300500, false);
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  long long i;
  for (i = 0; i < n; i++) cin >> a[i];
  cout << 1 << " ";
  long long ans = 1;
  long long last = n;
  for (i = 0; i < n; i++) {
    long long q = a[i];
    used[q] = true;
    ans++;
    {
      while (used[last] == true) {
        last--;
        ans--;
      }
    }
    cout << ans << " ";
  }
  return 0;
}
