#include <bits/stdc++.h>
using namespace std;
int arr[100001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  int cur = 1;
  for (int i = 0; i < n; i++) {
    if (cur <= arr[i]) {
      cur++;
    }
  }
  cout << cur;
}
