#include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int a[n + 1];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a + 1, a + n + 1);
  int mn = a[1];
  if (a[1] > 1) {
    a[1] = 1;
    mn = 1;
  }
  for (int i = 2; i <= n; i++) {
    if (a[i] > mn) {
      mn++;
      a[i] = mn;
    }
  }
  cout << a[n] + 1 << "\n";
}
