#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, a[10000];
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a + 1, a + 1 + n);
  if (a[1] != 1) {
    cout << 1;
    return 0;
  }
  for (i = 1; i <= n; i++) {
    if (a[i + 1] - a[i] != 1) {
      cout << a[i] + 1;
      return 0;
    }
  }
  cout << a[n] + 1;
}
