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