#include <bits/stdc++.h>
using namespace std;
long long n, r, avg, ans = 1, k, res, m, a[100100];
string second;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + 1 + n);
  int i = 1;
  while (i <= n) {
    if (a[i] >= ans) ans++;
    i++;
  }
  cout << ans << endl;
  return 0;
}
