#include <bits/stdc++.h>
using namespace std;
long long int arr[1000007];
long long int freq[1000007];
int main() {
  long long int n, i, flag = 0, maxi = -88, ans, index, curr;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> arr[i];
    maxi = max(maxi, arr[i]);
  }
  sort(arr, arr + n);
  curr = 1;
  for (i = 0; i < n; i++) {
    if (arr[i] >= curr) curr++;
  }
  cout << curr;
}
