#include <bits/stdc++.h>
using namespace std;
void pv(vector<long long int> arr, long long int size) {
  for (long long int i = 0; i < size; i++) {
    cout << arr[i] << ' ';
  }
}
void gv(vector<long long int> &arr) {
  long long int size = arr.size();
  for (long long int i = 0; i < size; i++) {
    cin >> arr[i];
  }
}
int main(void) {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  vector<long long int> arr(n + 1, 0);
  long long int last = n, x = 1;
  cout << 1 << " ";
  for (long long int i = 0; i < n; i++) {
    long long int k;
    cin >> k;
    arr[k] = 1;
    if (k == last) {
      long long int j = last - 1;
      while (j >= 1 && arr[j] != 0) {
        j--;
        x--;
      }
      last = j;
    } else {
      x++;
    }
    cout << x << " ";
  }
  return 0;
}
