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