#include <bits/stdc++.h>
using namespace std;
int pos[300005], vis[300005];
int main() {
  int n;
  while (cin >> n) {
    for (int i = 0; i < n; i++) scanf("%d", &pos[i]);
    int sum = 0;
    int last = n;
    printf("1");
    for (int i = 0; i < n; i++) {
      vis[pos[i]] = 1;
      sum++;
      while (vis[last] != 0) {
        sum--;
        last--;
      }
      printf(" %d", sum + 1);
    }
    printf("\n");
  }
  return 0;
}
