#include <bits/stdc++.h>
using namespace std;
bool a[300010];
int main() {
  int n;
  scanf("%d", &n);
  int wz = n;
  memset(a, false, sizeof(a));
  printf("1");
  for (int i = 1; i <= n; i++) {
    int k;
    scanf("%d", &k);
    a[k] = true;
    while (a[wz]) wz--;
    printf(" %d", 1 + i - (n - wz));
  }
  printf("\n");
}
