#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:65000000")
using namespace std;
int n;
int mas[100005];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) scanf("%d", mas + i);
  sort(mas, mas + n);
  int answ = 1;
  int pos = 0;
  while (pos < n) {
    while (pos < n && mas[pos] < answ) ++pos;
    if (pos < n) {
      ++answ;
      ++pos;
    }
  }
  printf("%d\n", answ);
  return 0;
}
