#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  int crnt = 1;
  vector<int> arr(n);
  for (auto &i : arr) cin >> i;
  sort(arr.begin(), arr.end());
  for (int i = 0; i < n; i += 1)
    if (arr[i] >= crnt) crnt++;
  cout << crnt << endl;
  return 0;
}
