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