#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int arr[n];
  int want = n;
  int found = 0;
  int came = 0;
  int f[N] = {};
  cout << 1 << " ";
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    came++;
    f[x] = 1;
    if (x == want) {
      int c = 0;
      while (f[want] == 1 && want >= 1) {
        want--;
        found++;
      }
    }
    cout << came - found + 1 << " ";
  }
}
