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