#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> vec(n);
  for (auto &it : vec) {
    cin >> it;
  }
  sort(vec.begin(), vec.end());
  int mex = 1;
  for (auto it : vec) {
    if (it >= mex) {
      mex++;
    }
  }
  cout << mex << '\n';
}
