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