#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> elements;
  int n;
  long long a, answer = 1;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    elements.push_back(a);
  }
  sort(elements.begin(), elements.end());
  for (int i = 0; i < elements.size(); i++) {
    if (answer <= elements[i]) {
      answer += 1;
    }
  }
  cout << answer;
}
