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