#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch <= '9' && ch >= '0') {
    x = (x << 1) + (x << 3) + ch - '0';
    ch = getchar();
  }
  return x * f;
}
void print(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (x >= 10) print(x / 10);
  putchar(x % 10 + '0');
}
using namespace std;
int a[300100];
bool book[300100];
int main() {
  int n = read();
  register int i, ans, tmp = 0, now;
  for (i = 1; i <= n; i++) a[i] = read();
  now = n + 1;
  cout << 1;
  for (i = 1; i <= n; i++) {
    ans = 0;
    book[a[i]] = 1;
    tmp++;
    while (book[now - 1]) now--, tmp--;
    ans = tmp + 1;
    printf(" %d", ans);
  }
  puts("");
  return 0;
}
