#include <bits/stdc++.h>
using namespace std;
map<int, int> m;
int cnt = 1;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    m[x]++;
  }
  for (auto i : m) {
    while (i.second > 0 && i.first >= cnt) {
      i.second--;
      cnt++;
    }
  }
  cout << cnt << endl;
  return 0;
}
