#include <bits/stdc++.h>
using namespace std;
int p[300008];
bool x[300008];
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> p[i];
  cout << 1 << ' ';
  int c = n;
  int d = 0;
  for (int i = 1; i <= n; i++) {
    d += (!x[p[i]]);
    x[p[i]] = true;
    while (x[c]) c--;
    cout << d + 1 - n + c << ' ';
  }
}
