#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n;
  scanf("%lld", &n);
  long long int vis[n + 1];
  for (long long int i = 0; i <= n; ++i) vis[i] = 0;
  long long int temp = n;
  for (long long int i = 0; i < n; ++i) {
    long long int re;
    scanf("%lld", &re);
    vis[re] = 1;
    while (temp && vis[temp]) temp--;
    if (i == 0) printf("1 ");
    printf("%lld ", i + 1 - n + temp + 1);
  }
  return 0;
}
