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