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