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