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