#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vi>;
using pii = pair<int, ll>;
using vii = vector<pii>;
using vb = vector<bool>;
using vs = vector<string>;
const int N = 1e6 + 3;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vi a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a.begin(), a.end());
  int cur = 1;
  for (int i = 0; i < n; i++) {
    if (cur <= a[i]) cur++;
  }
  cout << cur;
}
