#include <bits/stdc++.h>
using namespace std;
char a;
int main(void) {
  int n;
  int ar;
  int sos[3006] = {};
  int i;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> ar;
    sos[ar]++;
  }
  for (i = 1; i < 3001; i++)
    if (sos[i] == 0) break;
  cout << i;
  return 0;
}
