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