#include <bits/stdc++.h>
using namespace std;
int main() {
set<int>st;
int n;
cin>>n;
while(n--)
{
int x;
cin>>x;
st.insert(x);
}
cout<<st.size()<<endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXNldDxpbnQ+c3Q7CglpbnQgbjsKCWNpbj4+bjsKCXdoaWxlKG4tLSkKCXsKCWludCB4OwoJY2luPj54OwoJc3QuaW5zZXJ0KHgpOwoJfQoJY291dDw8c3Quc2l6ZSgpPDxlbmRsOwoJcmV0dXJuIDA7Cn0=