#include <bits/stdc++.h>
const int maxn = 100000;
using namespace std;
int n;
int a[maxn + 10];
int main() {
  while (scanf("%d", &n) != EOF) {
    for (int i = 0; i < n; i++) scanf("%d", &a[i]);
    if (n == 1) {
      printf("2\n");
      continue;
    }
    sort(a, a + n);
    a[0] = 1;
    for (int i = 1; i < n; i++) {
      if (a[i] != a[i - 1]) {
        if (a[i] != a[i - 1] + 1) a[i] = a[i - 1] + 1;
      }
    }
    printf("%d\n", a[n - 1] + 1);
  }
  return 0;
}
