#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  int n, N;
  cin >> N;
  n = N;
  priority_queue<int> coda;
  cout << 1 << ' ';
  for (int i = 0; i < N; i++) {
    int t;
    cin >> t;
    coda.push(t);
    while (!coda.empty() && coda.top() == n) coda.pop(), n--;
    cout << coda.size() + 1 << ' ';
  }
}
