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