#include <bits/stdc++.h>
using namespace std;
int BIT[300005];
int query(int idx) {
  int ans = 0;
  for (; idx; idx -= idx & -idx) ans += BIT[idx];
  return ans;
}
void update(int idx) {
  for (; idx < 300005; idx += idx & -idx) BIT[idx]++;
}
void solve() {
  int n;
  cin >> n;
  cout << 1 << '\n';
  int cur = n;
  vector<int> x(n + 1, 0);
  for (int i = 1; i < n + 1; i++) {
    int temp;
    cin >> temp;
    x[temp] = 1;
    update(temp);
    while (cur > 0 and x[cur] == 1) cur--;
    cout << query(cur) + 1 << '\n';
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
