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