#include <bits/stdc++.h>
using namespace std;
int N, arr[100010];
void Debug() {}
void Read() {
  cin >> N;
  for (int i = 1; i <= N; ++i) cin >> arr[i];
  sort(arr + 1, arr + N + 1);
}
void Solve() {
  for (int i = 1; i <= N; ++i)
    if (arr[i] > arr[i - 1]) arr[i] = arr[i - 1] + 1;
  cout << arr[N] + 1 << "\n";
}
int main() {
  Read();
  Solve();
  Debug();
  return 0;
}
