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