#include <iostream> #include <unordered_set> using namespace std; int main() { int n, a; cin >> n; unordered_set<int> s; while (n--) { cin >> a; s.insert(a); } cout << s.size() << endl; return 0; }