#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  int mas[n];
  for (int i = 0; i < n; i++) {
    cin >> mas[i];
  }
  sort(mas, mas + n);
  int cnt = 1;
  for (int i = 0; i < n; i++) {
    if (mas[i] >= cnt) cnt++;
  }
  cout << cnt << endl;
  return 0;
}
