#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  cin >> n;
  set<int> set1;
  for(int i=0;i<n;i++){
    int a;
    cin >> a;
    set1.insert(a);
  }
  cout << set1.size() << endl;
}
