#include using namespace std; #define int long long signed main(){ int N; cin >> N; vectorvec(N); for(int i=0; i> vec[i]; } sort(vec.begin(),vec.end()); int x = N; for(int i=1; i vec[i-1]+1){ x--; } } cout << x << endl; }