#include <bits/stdc++.h>
using namespace std;
int a[300001], b[300001];
int main() {
  int n, k, m;
  scanf("%d", &n);
  k = n;
  printf("1");
  for (int i = 1; i <= n; i++) {
    scanf("%d", &m);
    b[m] = 1;
    while (b[k]) k--;
    printf(" %d", i + k - n + 1);
  }
  puts("");
  return 0;
}
