#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
const int N = 1e5 + 10;
multiset<int> ms;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    ms.insert(x);
  }
  int cur = 1;
  while (!ms.empty()) {
    if (cur <= *ms.begin()) {
      ms.erase(ms.find(*ms.begin()));
      cur++;
    } else {
      ms.erase(ms.find(*ms.begin()));
    }
  }
  cout << cur << endl;
  return 0;
}
