#include <bits/stdc++.h>
using namespace std;
int v[112345];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &v[i]);
  sort(v, v + n);
  int res = 1;
  for (int i = 0; i < n; i++) {
    if (v[i] >= res) {
      v[i] = res;
      res++;
    }
  }
  printf("%d\n", res);
  return 0;
}
