#include #include #include #include #include #include #include #include #include using namespace std; int main(void){ int N, c; cin >> N; vector v; int cnt = 0; for(int i = 0; i < N; i++){ cin >> c; v.push_back(c); } int key = v[0]; sort(v.begin(), v.end()); for(int i = 1; i < N; i++){ if(key != v[i]){ cnt++; key = v[i]; } } if(cnt > 0) cnt += 1; cout << cnt << endl; return 0; }