#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
int n;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++) cin >> arr[i];
sort(arr, arr + n);
int cnt = 1;
for (int i = 0; i < n - 1; i++){
if (arr[i] != arr[i + 1])
cnt++;
}
cout << cnt << endl;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgbGwgbG9uZyBsb25nCmludCBtYWluKCkKewogICAgaW50IG47CiAgICBjaW4gPj4gbjsKICAgIGludCBhcnJbbl07CiAgICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykgY2luID4+IGFycltpXTsKICAgIHNvcnQoYXJyLCBhcnIgKyBuKTsKICAgIGludCBjbnQgPSAxOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuIC0gMTsgaSsrKXsKICAgICAgICBpZiAoYXJyW2ldICE9IGFycltpICsgMV0pCiAgICAgICAgICAgIGNudCsrOwogICAgfQogICAgY291dCA8PCBjbnQgPDwgZW5kbDsKfQo=