#include <bits/stdc++.h>
using namespace std;
int n, a[100005];
int main() {
  int ans, cur = 1;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  sort(a + 1, a + 1 + n);
  for (int i = 1; i <= n; i++) {
    if (a[i] >= cur)
      cur++;
    else
      continue;
  }
  printf("%d\n", cur);
  return 0;
}
