#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
int ar[100005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t, i, j, k, n, m = 0, mx = 0, cnt = 0, flg = 0, sum = 0, mn = 1e10,
                           ans = 0;
  cin >> n;
  for (i = 0; i < n; i++) cin >> ar[i];
  sort(ar, ar + n);
  for (i = 0; i < n; i++)
    if (ar[i] > m) {
      ar[i] = m + 1;
      m++;
    }
  cout << ar[n - 1] + 1;
  return 0;
}
