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