#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long int lcm(long long int a, long long int b) {
  return a * b / gcd(a, b);
}
long long int abs(long long int a, long long int b) {
  if (a > b) return a - b;
  return b - a;
}
double abs(double a, double b) {
  if (a > b) return a - b;
  return b - a;
}
const int MAX = 400009;
long long int ntmp;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n;
  cin >> n;
  cout << 1 << " ";
  long long int a[MAX] = {0};
  ntmp = n;
  long long int cnt = 0;
  for (size_t i = 0; i < ntmp; i++) {
    long long int b;
    cin >> b;
    b--;
    a[b] = 1;
    cnt++;
    while (n - 1 >= 0 && a[n - 1] == 1) {
      n--;
      cnt--;
    }
    if (n - 1 < 0) {
      cout << 1 << " ";
    } else
      cout << 1 + cnt << " ";
  }
  return 0;
}
