#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int res = 1;
  scanf("%d", &(n));
  int t[300000 + 1] = {0};
  int ro = n;
  cout << res;
  for (int i = 0; i < (n); ++i) {
    int s;
    scanf("%d", &(s));
    t[s] = 1;
    if (s <= ro) {
      res++;
      if (s == ro) {
        while (ro > 0 and t[ro]) {
          ro--;
          res--;
        }
      }
    }
    cout << " " << res;
  }
}
