#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  int last = n + 1;
  int a[n + 1];
  for (int i = 1; i <= n; i++) a[i] = 0;
  cout << 1 << " ";
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    a[x] = 1;
    while (last != 1 && a[last - 1] == 1) {
      last--;
    }
    cout << (i - (n + 1 - last) + 1) << " ";
  }
}
