#include <bits/stdc++.h>
using namespace std;
const int INF = 2000000000;
const int MAX = 10000000;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  while (cin >> n) {
    int mex = 1;
    vector<int> v(n);
    for (int i = 0; i < n; i++) cin >> v[i];
    sort(v.begin(), v.end());
    for (int i = 0; i < n; i++) {
      if (v[i] >= mex) mex++;
    }
    cout << mex << "\n";
  }
  return 0;
}
