#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, a, b, ts, f = 1, cn = 0, n, in, ar[100009];
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &ar[i]);
  }
  sort(ar, ar + n);
  in = 1;
  for (i = 0; i < n; i++) {
    if (ar[i] >= in) {
      in++;
    }
  }
  printf("%d\n", in);
  return 0;
}
