#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  long long n;
  cin >> n;
  vector<long long> v;
  for (long long i = 0; i < n; i++) {
    long long temp;
    cin >> temp;
    v.push_back(temp);
  }
  sort(v.begin(), v.end());
  long long going = 1;
  for (long long i = 0; i < n; i++) {
    if (v[i] >= going) {
      going++;
      continue;
    }
  }
  cout << going;
  return 0;
}
