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