#include <bits/stdc++.h>
using namespace std;
class Solution {
 public:
  void solve(std::istream& in, std::ostream& out) {
    int n;
    in >> n;
    vector<int> vi(n, 0);
    for (int i = 0; i < (int)(n); ++i) {
      in >> vi[i];
    }
    sort((vi).begin(), (vi).end());
    int x = 1;
    for (int index = 0; index < (int)(n); ++index) {
      if (vi[index] >= x) {
        ++x;
      }
    }
    out << x << endl;
  }
};
void solve(std::istream& in, std::ostream& out) {
  out << std::setprecision(12);
  Solution solution;
  solution.solve(in, out);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  istream& in = cin;
  ostream& out = cout;
  solve(in, out);
  return 0;
}
