#include <bits/stdc++.h>
using namespace std;
const double g = 10.0, eps = 1e-7;
const int N = 300000 + 10, maxn = sqrt(N) + 10, inf = 0x3f3f3f;
int s[N];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, cnt;
  cin >> n;
  cnt = n;
  cout << 1 << endl;
  for (int i = 1; i <= n; i++) {
    int a;
    cin >> a;
    s[a]++;
    if (a == cnt) {
      while (cnt > 0 && s[cnt]) cnt--;
    }
    cout << cnt - n + i + 1 << endl;
  }
  return 0;
}
