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