#include <bits/stdc++.h>
using namespace std;
int a[400000];
int n;
int p[400000];
int main() {
  cin >> n;
  int j = n;
  for (int i = 1; i <= n; i++) {
    cin >> p[i];
  }
  cout << "1";
  for (int i = 1; i <= n; i++) {
    a[p[i]] = 1;
    while (a[j] == 1) {
      j--;
    }
    int temp = n - j;
    cout << " " << i - temp + 1;
  }
  cout << endl;
  return 0;
}
