#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int p;
  int c[n];
  for (int i = 0; i < n; ++i) {
    c[i] = 0;
  }
  cout << "1\n";
  int z = 0;
  for (int i = 0; i < n; ++i) {
    scanf("%d", &p);
    p--;
    c[p] = 1;
    while (c[n - z - 1] == 1) {
      z++;
    }
    printf("%d\n", i + 1 - z + 1);
  }
  return 0;
}
