#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long mod = 1000000007;
int a[100005];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) scanf("%d", &(a[i]));
  sort(a, a + n);
  int ans = 1;
  for (int i = 0; i < n; i++) {
    if (a[i] >= ans) ans++;
  }
  cout << ans << endl;
}
