#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, y, j;
  cin >> n;
  int x[3002];
  for (int i = 0; i < 3002; i++) x[i] = 0;
  for (int i = 1; i <= n; i++) {
    cin >> y;
    x[y] = 1;
  }
  for (j = 1; j < 3002; j++) {
    if (x[j] == 0) break;
  }
  cout << j << endl;
  return 0;
}
