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