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