#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
int static dp[1005][1005];
const int MOD = 1e9 + 7;
bool check(int x) {
  int y = sqrt(x);
  return y * y == x;
}
void solve() {
  int n;
  cin >> n;
  int a[n + 1];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  int mex = 1;
  for (int i = 0; i < n; i++) {
    if (a[i] >= mex) {
      mex++;
    }
  }
  cout << mex << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
}
