#include <bits/stdc++.h>
using namespace std;
int main() {
#pragma warning(disable : 4996)
  int n;
  scanf("%d", &n);
  long long int a[100005];
  for (int i = 0; i < n; i++) scanf("%I64d", &a[i]);
  sort(a, a + n);
  a[0] = 1;
  for (int i = 1; i < n; i++) {
    if (a[i] - a[i - 1] > 1) a[i] = a[i - 1] + 1;
  }
  if (n > 1)
    printf("%I64d", a[n - 1] + 1);
  else
    printf("2");
  return 0;
}
