#include <bits/stdc++.h>
using namespace std;
int mas[100001];
int main() {
  int n, m;
  int i, j;
  cin >> n;
  for (i = 0; i < n; i++) cin >> mas[i];
  int ans = 1;
  sort(mas, mas + n);
  for (i = 0; i < n; i++)
    if (ans <= mas[i]) ans++;
  cout << ans;
}
