#include <bits/stdc++.h>
using namespace std;
long long n, ar[400005], i, j, vis[300005], k;
void input() { cin >> n; }
void output() { cout << (i - (n - j)) + 1 << " "; }
void output1() { cout << 1 << " "; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  input();
  j = n;
  output1();
  for (i = 1; i <= n; i++) {
    cin >> ar[i];
    vis[ar[i]] = 1;
    while (1) {
      if (vis[j] != 1) {
        break;
      } else {
        j--;
      }
    }
    output();
  }
  return 0;
}
