#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 5, mod = 1e9 + 7;
bool bl[N];
int main() {
  int n;
  cin >> n;
  vector<int> arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int mx = n;
  cout << 1 << ' ';
  for (int i = 0; i < n; i++) {
    bl[arr[i]] = 1;
    while (bl[mx]) {
      mx--;
    }
    int ans = (i + 1) - (n - mx) + 1;
    cout << ans << ' ';
  }
  return 0;
}
