#include <bits/stdc++.h>
using namespace std;
double eps = 1e-9;
const int INF = 1e9 + 7;
const int MAXN = int(3e5 + 7);
int n, a[MAXN], ans;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  a[0] = 1;
  for (int i = 1; i < n; i++) {
    if (a[i] > a[i - 1]) a[i] = a[i - 1] + 1;
  }
  cout << a[n - 1] + 1 << endl;
  return 0;
}
