#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 123;
const int mod = 1e9 + 7;
const int INF = 1e9 + 1;
const long long INFL = 1e18 + 1;
const double eps = 1e-9;
const double pi = acos(-1.0);
int a[3 * N];
int used[3 * N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  int cnt = n;
  cout << "1 ";
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    used[a[i]] = 1;
    while (used[cnt]) cnt--;
    cout << i - n + cnt + 1 << ' ';
  }
  return 0;
}
