#include <bits/stdc++.h>
using namespace std;
const int maxn = 100000 + 5;
int a[maxn];
int main() {
  int n;
  while (cin >> n) {
    for (int i = 0; i < n; ++i) cin >> a[i];
    sort(a, a + n);
    int mi = 1;
    for (int i = 0; i < n; ++i) {
      if (a[i] >= mi) mi++;
    }
    cout << mi << endl;
  }
  return 0;
}
