#include <bits/stdc++.h>
using namespace std;
int n, a, l;
int vis[300010];
int main() {
  scanf("%d", &n);
  printf("1 "), l = n;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a), vis[a] = 1;
    while (vis[l] == 1) l--;
    printf("%d ", i - (n - l) + 1);
  }
}
