#include <bits/stdc++.h>
using namespace std;
int a[1000010];
int main() {
  int n, i, j, k;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  int curr = 1;
  sort(a, a + n);
  for (i = 0; i < n; i++) {
    if (a[i] >= curr) {
      curr++;
    }
  }
  cout << curr << endl;
  return 0;
}
