#include using namespace std; int main(){ int N, in,ans=0; vector v; cin >> N; while(cin >> in) v.push_back(in); sort(v.begin(),v.end()); int pre = 0; for(int i=0;i