#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int num[n];
  int flag[n];
  int last = 0;
  for (int i = 0; i < n; i++) {
    cin >> num[i];
    flag[i] = 0;
  }
  cout << 1 << " ";
  int count = 0;
  int last_pos = n - 1;
  for (int i = 0; i < n; i++) {
    flag[num[i] - 1] = 1;
    for (int j = last_pos; j >= 0; j--) {
      if (flag[j] == 0) {
        break;
      } else {
        ++last;
        --last_pos;
      }
    }
    count = i + 1 - last;
    cout << count + 1 << " ";
  }
  cout << endl;
  return 0;
}
