#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<long long> a;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    a.push_back(x);
  }
  sort(a.begin(), a.end());
  if (a[0] != 1) a[0] = 1;
  for (int i = 1; i < n; i++)
    if (a[i] - a[i - 1] > 1) a[i] = a[i - 1] + 1;
  cout << a[n - 1] + 1;
}
