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