#include <bits/stdc++.h>
using namespace std;
const int maxN = 100 * 100 + 100;
long long a, b, c, arr[maxN], n;
bool l;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  if (arr[0] != 1)
    cout << "1" << endl;
  else {
    for (int i = 1; i < n && l == false; i++)
      if (arr[i] - arr[i - 1] >= 2) {
        cout << arr[i - 1] + 1 << endl;
        l = true;
      }
    if (l == false) cout << arr[n - 1] + 1 << endl;
  }
  return 0;
}
