#include <bits/stdc++.h>
using namespace std;
multiset<int> a;
int main() {
  int n, x;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    a.insert(x);
  }
  int t = 1;
  while (true) {
    auto it = a.lower_bound(t);
    if (it == a.end()) break;
    t++;
    a.erase(it);
  }
  cout << t << endl;
}
