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