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