#include <bits/stdc++.h>
using namespace std;
int a[400000], b[400000];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  int co = n;
  printf("1 ");
  for (int i = 1; i <= n; i++) {
    b[a[i]] = 1;
    for (int j = co; j >= 1; j--) {
      if (b[j] == 1) {
        co--;
      } else
        break;
    }
    printf("%d ", i - (n - co) + 1);
  }
  printf("\n");
}
