#include <bits/stdc++.h>
using namespace std;
int a[100010];
int main() {
  int Case = 1;
  int n, m, k;
  char dump[2];
  while (scanf("%d", &n) == 1) {
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
    }
    sort(a + 1, a + 1 + n);
    int mn = 1;
    for (int i = 1; i <= n; i++) {
      if (mn < a[i]) {
        a[i] = mn;
        mn++;
      } else if (mn == a[i]) {
        mn++;
      }
    }
    printf("%d\n", mn);
  }
  return 0;
}
