#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, answer = 0, k = 1;
  cin >> n;
  if (n == 1) {
    cout << 2 << endl;
    return;
  }
  vector<long long int> arr(n);
  for (long long int i = 0; i < n; ++i) cin >> arr[i];
  sort(arr.begin(), arr.end());
  for (long long int i = 0; i < n; ++i) {
    if (arr[i] >= k) arr[i] = k++;
  }
  sort(arr.begin(), arr.end());
  k = 1;
  for (long long int i = 0; i < n; ++i) {
    if (arr[i] == k) k++;
  }
  answer = k;
  cout << answer << endl;
}
int main() { solve(); }
