#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n ; cin>>n;
int count=0;
vector<int>arr(n);
for(int i =0;i<n;i++){
cin>>arr[i];
}
vector<bool>vis(n,false);
for(int i =0;i<n;i++){
if(!vis[i]){
count++;
for(int j =0;j<n;j++){
if (arr[i]==arr[j]){
vis[j]=true;
}
}
}
}
cout<<"total number of unique elements "<<count<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Yml0cy9zdGRjKysuaD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCBuIDsgY2luPj5uOwoJaW50IGNvdW50PTA7Cgl2ZWN0b3I8aW50PmFycihuKTsKCWZvcihpbnQgaSA9MDtpPG47aSsrKXsKCQljaW4+PmFycltpXTsKCX0KCXZlY3Rvcjxib29sPnZpcyhuLGZhbHNlKTsKCWZvcihpbnQgaSA9MDtpPG47aSsrKXsKCQlpZighdmlzW2ldKXsKCQkJY291bnQrKzsKCQkJZm9yKGludCBqID0wO2o8bjtqKyspewoJCQlpZiAoYXJyW2ldPT1hcnJbal0pewoJCQkJdmlzW2pdPXRydWU7CgkJCX0KCQl9CgkJCQoJCX0KCQkKCX0KCWNvdXQ8PCJ0b3RhbCBudW1iZXIgb2YgdW5pcXVlIGVsZW1lbnRzICI8PGNvdW50PDxlbmRsOwoJcmV0dXJuIDA7Cn0=