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