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