#include <bits/stdc++.h>
using namespace std;
int n;
int a[300003];
bool v[300003];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  printf("1 ");
  int r = n, cnt = 0;
  for (int i = 1; i <= n; i++) {
    v[a[i]] = true;
    while (v[r]) --r;
    printf("%d ", i - (n - r) + 1);
  }
  return 0;
}
