#include <bits/stdc++.h>
int main() {
  int a[3000];
  int n, i, j, tam, z, q;
  scanf("%d", &n);
  for (i = 0; i <= n - 1; i++) scanf("%d", &a[i]);
  for (i = 0; i <= n - 2; i++)
    for (j = i + 1; j <= n - 1; j++)
      if (a[i] > a[j]) {
        tam = a[i];
        a[i] = a[j];
        a[j] = tam;
      }
  if (a[n - 1] == n) {
    q = n + 1;
    printf("%d", q);
  }
  if (a[0] > 1)
    printf("1");
  else {
    for (i = 0; i <= n - 1; i++)
      if (a[i] != i + 1) {
        z = i + 1;
        printf("%d", z);
        break;
      }
  }
  return 0;
}
