#include <bits/stdc++.h>
using namespace std;
int vis[300010];
int a[300010];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  cout << "1";
  memset(vis, 0, sizeof(vis));
  int l = n;
  int ava = 0;
  for (int i = 1; i <= n; i++) {
    int x;
    x = a[i];
    vis[x] = 1;
    int flag = 0;
    if (vis[n] == 1) {
      while (vis[l] == 1) {
        l--;
        flag = 1;
      }
      if (flag == 1) l++;
      int temp = i - (n - l + 1);
      cout << ' ' << temp + 1;
    } else
      cout << ' ' << i + 1;
  }
  cout << endl;
  return 0;
}
