#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> vec(n);
  for (int i = 0; i < n; i++) cin >> vec[i];
  sort(vec.begin(), vec.end());
  long long cur_no = 1;
  for (int i = 0; i < n; i++) {
    if (vec[i] >= cur_no) cur_no++;
  }
  cout << cur_no;
}
