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