#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = 1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
  if (f) x = -x;
  return x;
}
bool s[300005];
int t[300005];
int main() {
  int n, i, j;
  n = read();
  printf("1 ");
  int r = n, p;
  for (i = 1; i <= n; i++) {
    p = read();
    s[p] = 1;
    while (s[r]) r--;
    for (j = p; j <= n; j += (j & (-j))) t[j]++;
    int ans = 1;
    for (j = r; j; j -= (j & (-j))) ans += t[j];
    printf("%d ", ans);
  }
  return 0;
}
