#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 10;
const int MOD = 1e9 + 7;
const int MAXN = 1e6 + 10;
const int SMAXN = 1e3 + 10;
const int P = 259;
const long long BINF = 1e18 + 10;
const long double EPS = 1e-10;
const long double PI = acos(-1);
int n, now;
vector<int> Vec;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  srand(time(0));
  cin >> n;
  Vec.resize(n);
  for (register int i(0); i < n; i++) {
    cin >> Vec[i];
  }
  sort((Vec).begin(), (Vec).end());
  now = 1;
  for (register int i(0); i < Vec.size(); i++) {
    if (Vec[i] >= now) now++;
  }
  cout << now;
  return 0;
}
