#include <bits/stdc++.h>
using namespace std;
const int MAX = 100001;
int n, now = 1, arr[MAX];
int main() {
  ios::sync_with_stdio(0);
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> arr[i];
  sort(arr, arr + n);
  for (int i = 0; i < n; ++i)
    if (arr[i] >= now) now++;
  cout << now << endl;
  return 0;
}
