#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  multiset<int> st;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    st.insert(a[i]);
  }
  sort(a.begin(), a.end());
  int x = 1;
  while (true) {
    auto it = a.begin();
    bool flag = 0;
    for (it = a.begin(); it != a.end(); it++) {
      if (*it >= x) {
        flag = 1;
        a.erase(it);
        x++;
        break;
      }
    }
    if (flag == 0) {
      cout << x;
      return;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
