#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 10;
int n, m;
bool vst[maxn];
int main() {
  scanf("%d", &n);
  printf("1");
  int key = n, ans = 1;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &m);
    vst[m] = 1;
    if (m < key) {
      ans++;
    } else if (m == key) {
      ans++;
      while (vst[key]) {
        key--;
        ans--;
      }
    }
    printf(" %d", ans);
  }
  printf("\n");
  return 0;
}
