#include #define be(v) (v).begin(),(v).end() #define pb(q) push_back(q) #define rep(i, n) for(int i=0;i> n; set s; rep(i, n){ cin >> ans; s.insert(ans); } ans = 0; while(!s.empty()){ ans++; ll now = *s.begin(); s.erase(now); auto itr = s.upper_bound(now + 1); while(itr != s.end()){ now = *itr; s.erase(itr); itr = s.upper_bound(now + 1); } } cout << ans << endl; return 0; }