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