#include <bits/stdc++.h>
using namespace std;
const long long int INF = 98769876987698889LL;
const int MOD = 1e9 + 7;
const int dx8[] = {1, 1, 0, -1, -1, -1, 0, 1};
const int dy8[] = {0, 1, 1, 1, 0, -1, -1, -1};
const int dx4[] = {1, -1, 0, 0};
const int dy4[] = {0, 0, 1, -1};
const int N = 3e5 + 5;
int a[N], ptr, ans, n;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n;
  ptr = n + 1;
  long long int ans = 0;
  cout << 1 << " ";
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    a[x] = 1;
    while (a[ptr - 1] == 1) ptr--;
    ans = i + ptr - n;
    cout << ans << " ";
  }
}
