#include <bits/stdc++.h>
using namespace std;
void omajinai() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << setprecision(15);
}
priority_queue<long long, vector<long long>, greater<long long>> pq;
int main() {
  omajinai();
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    pq.push(x);
  }
  int ans = 0;
  while (!pq.empty()) {
    long long t = pq.top();
    if (t >= ans + 1) {
      ans++;
    }
    pq.pop();
  }
  cout << ans + 1 << endl;
}
