#include <bits/stdc++.h>
using namespace std;
int a[2333333];
int main() {
  int n;
  scanf("%d", &n);
  printf("1 ");
  int now = n + 1;
  for (int i = 1; i <= n; i++) {
    int w;
    scanf("%d", &w);
    a[w] = 1;
    while (a[now - 1] == 1) now--;
    printf("%d ", i + 1 - (n + 1 - now));
  }
}
