#include <bits/stdc++.h>
using namespace std;
constexpr static int MAXN = 3e5 + 10;
int t[MAXN];
int main() {
  int n;
  scanf("%d", &n);
  int r = n;
  for (int i = 0; i <= n; i++) t[i] = n + 1;
  printf("1");
  for (int i = 1; i <= n; i++) {
    int p;
    scanf("%d", &p);
    t[p] = i;
    while (t[r] <= i) r--;
    int cnt = i - (n - r) + 1;
    printf(" %d", cnt);
  }
  printf("\n");
}
