#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int ind = 0;
  vector<int> v;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int temp;
    scanf("%d", &temp);
    v.push_back(temp);
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < n; i++) {
    if (v[i] - ind == 1) {
      ind++;
    } else {
      break;
    }
  }
  printf("%d", ind + 1);
}
