//
// Created by lanys on 2024/4/12.
//
数组去重
#include <iostream>
using namespace std;
int unique(int a[], int size) {
int cnt = 0;
for (int i = 0; i < size; i++) {
bool is_exist = false;
for (int j = 0; j < i; j++) {
if (a[j] == a[i]) {
is_exist = true;
break;
}
}
if (!is_exist) cnt++;
}
return cnt;
}
int main() {
int a[1001];
int n;
cin >> n;
for (int i = 0; i < n; i++) cin >> a[i];
cout << unique(a, n) << endl;
return 0;
}