#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios ::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n;
  while (cin >> n) {
    int x;
    int ans = 0;
    vector<int> v;
    while (n--) {
      cin >> x;
      v.push_back(x);
    }
    sort(v.begin(), v.end());
    for (int x : v)
      if (ans < x) ++ans;
    cout << (++ans) << '\n';
  }
  return 0;
}
