#include <bits/stdc++.h>
using namespace std;
const int MAX = 5 * 10000;
const int MOD = 1e9 + 7;
const double PI = 3.1415926535;
double dist1(double x1, double y1, double x2, double y2) {
  return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
int dist(int x1, int y1, int x2, int y2) {
  return (abs(x1 - x2) + abs(y1 - y2));
}
int main() {
  vector<int> v;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  int c = 1;
  for (int i = 0; i < n; i++) {
    if (v[i] >= c) {
      v[i] = c;
      c++;
    }
  }
  cout << c;
  return 0;
}
