#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int a[101];
for(int i = 0; i < n; i++)
{
cin >> a[i];
}
int diffNum = 0;
for(int i = 0; i < n; i++)
{
bool newNum = true;
for(int j = 0; j < i; j++)
{
if(a[j] == a[i])
{
newNum = false;
break;
}
}
if(newNum == true)
{
diffNum++;
}
}
cout << diffNum;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbiA+PiBuOwoJaW50IGFbMTAxXTsKCWZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspCgl7CgkJY2luID4+IGFbaV07Cgl9CglpbnQgZGlmZk51bSA9IDA7Cglmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQoJewoJCWJvb2wgbmV3TnVtID0gdHJ1ZTsgCgkJZm9yKGludCBqID0gMDsgaiA8IGk7IGorKykgCgkJewoJCQlpZihhW2pdID09IGFbaV0pCgkJCXsJCQkJCgkJCQluZXdOdW0gPSBmYWxzZTsKCQkJCWJyZWFrOwoJCQl9CQoJCX0KCQlpZihuZXdOdW0gPT0gdHJ1ZSkKCQl7CgkJCWRpZmZOdW0rKzsKCQl9Cgl9Cgljb3V0IDw8IGRpZmZOdW07CglyZXR1cm4gMDsKfQ==