#include <bits/stdc++.h>
using namespace std;
long long n, arr[1000006], cur;
map<long long, bool> b;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> arr[i];
  sort(arr + 1, arr + 1 + n);
  for (int i = 1; i <= n; i++) {
    if (arr[i] > cur) cur++;
    b[cur] = 1;
  }
  for (int i = 1; i <= 1e6 + 1; i++) {
    if (b[i] ^ 1) {
      cout << i << "\n";
      break;
    }
  }
}
