#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  long long int N, ans = 0, arr[100099];
  cin >> N;
  for (int A = 1; A <= N; A++) cin >> arr[A];
  sort(arr, arr + N + 1);
  for (int B = 1; B <= N; B++) {
    if (arr[B] > ans) ans++;
  }
  cout << ans + 1;
  return 0;
}
