#include<bits/stdc++.h>
typedef long long int ll;
typedef unsigned long long int ull;
#define BIG_NUM 2000000000
#define HUGE_NUM 99999999999999999
#define MOD 1000000007
#define EPS 0.000000001
using namespace std;


#define SIZE 100005

int table[SIZE];

int main(){

	int N;
	scanf("%d",&N);

	for(int i = 0; i < N; i++){

		scanf("%d",&table[i]);
	}

	sort(table,table+N);

	int ans = 0,pre = -1;

	for(int i = 0; i < N; i++){
		if(table[i] == pre)continue;

		ans++;
		pre = table[i];
	}

	printf("%d\n",ans);

	return 0;
}

