#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const double pi = acos(-1.0);
const int INF = 1000000000;
const int dx[4] = {0, 0, 1, -1};
const int dy[4] = {1, -1, 0, 0};
const int N = 100001;
int n, a[N];
int ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 0; (i) < (n); ++i) cin >> a[i];
  sort(a, a + n);
  int c = 1;
  for (int i = 0; i < n; i++) {
    if (a[i] >= c) {
      c++;
    }
  }
  cout << c << endl;
  return 0;
}
