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