#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int n, a[N];
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int ans = 1;
  sort(a, a + n);
  for (int i = 0; i < n; i++)
    if (a[i] >= ans) a[i] = ans++;
  cout << ans << endl;
  return 0;
}
