#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int i = 0;
  vector<int> x(n);
  int z = 1;
  while (i < n) {
    cin >> x[i];
    i++;
  }
  sort(x.begin(), x.end());
  i = 0;
  while (i < n) {
    if (x[i] >= z) z++;
    i++;
  }
  cout << z;
  return 0;
}
