#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, cnt;
  cin >> n;
  long long a[n + 1];
  for (int i = 0; i < n; ++i) cin >> a[i];
  multiset<long long> S;
  multiset<long long>::iterator it;
  for (int i = 1; i <= n; ++i) {
    S.insert(-i);
  }
  cout << 1 << " ";
  for (int i = 0; i < n; ++i) {
    S.erase(-a[i]);
    if (S.size()) {
      it = S.begin();
      cnt = n + *it;
      cout << (i + 1 + 1 - cnt) << " ";
    } else
      cout << 1 << "\n";
  }
  cout << "\n";
  return 0;
}
