#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int k;
  vector<int> v;
  while (t--) {
    cin >> k;
    v.push_back(k);
  }
  sort(v.begin(), v.end());
  int cur = 1;
  for (int i = 0; i < v.size(); i++) {
    if (v[i] >= cur) cur++;
  }
  cout << cur << endl;
}
