#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, *a, c = 0;
  cin >> n;
  a = new int[n];
  for (int i = 0; i < n; cin >> a[i++])
    ;
  sort(a, a + n);
  for (int i = 0; i < n; i++)
    if (a[i] > c) a[i] = ++c;
  cout << c + 1;
  delete[] a;
  return 0;
}
