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