#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 5;
void solve() {
  long long n;
  cin >> n;
  vector<long long> v(n);
  for (auto &i : v) {
    cin >> i;
  }
  sort((v).begin(), (v).end());
  long long mini = 1;
  for (auto &i : v) {
    if (mini <= i) {
      i = mini;
      mini++;
    }
  }
  cout << mini;
}
int32_t main() {
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
