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