#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, i, j, k = 5, c = 1;
  cin >> n;
  int A[n];
  for (i = 0; i < n; i++) {
    cin >> A[i];
  }
  sort(A, A + n);
  for (i = 0; i < n; i++) {
    if (A[i] >= c) {
      c++;
    }
  }
  printf("%d\n", c);
}
