#include <bits/stdc++.h>
using namespace std;
int arr[100001], n, l;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
  sort(arr, arr + n);
  l = 1;
  for (int i = 0; i < n; i++) {
    if (arr[i] > l)
      arr[i] = l, l++;
    else if (arr[i] == l)
      l++;
    else
      l = arr[i] + 1;
  }
  printf("%d", l);
}
