#include <bits/stdc++.h>
using namespace std;
int ar[300000 + 30], n, last, cnt_last;
bool vis[300000 + 30];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &ar[i]);
  }
  last = n;
  printf("1 ");
  for (int i = 1; i <= n; i++) {
    vis[ar[i]] = 1;
    while (vis[last]) {
      last -= 1;
      cnt_last++;
    }
    printf("%d ", i - cnt_last + 1);
  }
  return 0;
}
