Link to this code: https://cses.fi/paste/31e85f1592f49d697d8dd3/
/*
  2024 cùng những điều ước.
*/

#include <bits/stdc++.h>
using namespace std; 

typedef long long ll; 
typedef pair<int, int> ii; 

const ll LINF = 1e18; 
const int INF = 1e9;

// Bài này cách đơn giản nhất là dùng set (đọc lại tính chất của set ở Chương 3)

signed main() {
	ios::sync_with_stdio(0); cin.tie(0); 
	int n; 
	cin >> n;   

	set<int> s;  
	for (int i = 1; i <= n; i++) {
		int x; cin >> x; 
		s.insert(x); 
	}

	cout << s.size() << '\n';  
	
	return 0;  
}