#include <bits/stdc++.h>
using namespace std;
int n, pos, arr[303030], cnt;
int main() {
  scanf("%d", &n);
  pos = n;
  cout << 1 << ' ';
  for (int i = 1; i <= n; i++) {
    scanf("%d", &cnt);
    arr[cnt] = 1;
    while (arr[pos]) pos--;
    printf("%d ", i - (n - pos) + 1);
  }
  return 0;
}
