#include <bits/stdc++.h>
using namespace std;
const int N = 150000 + 500;
int main() {
  int n;
  cin >> n;
  int x;
  vector<int> v;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  int cur = 1;
  for (int i = 0; i < n; ++i) {
    if (v[i] >= cur) cur++;
  }
  puts("\n");
  cout << cur << "\n";
}
