#include <bits/stdc++.h>
using namespace std;
double eps = 0.0001;
struct drago {
  int a;
  bool operator<(const drago a) const { return this->a < a.a; }
};
int main() {
  int n;
  cin >> n;
  drago* mas = new drago[n];
  for (int i = 0; i < n; i++) cin >> mas[i].a;
  sort(mas, mas + n);
  int res = 1;
  for (int i = 0; i < n; i++)
    if (mas[i].a >= res) res++;
  cout << res;
  return 0;
}
