#include <stdio.h>
int main(){
int a,b,i;
int k=0;
scanf("%d",&a);
char s[a];
char l[a];
for(i=0;i<a;i++){
	scanf("%s",&s[i]);
	l[i] = 0;}
for(i = 0;i < a;i++){
	for(b = i;b < a;b++){
			if(b != i){
			if(s[i] == s[b]) l[i] = s[i];}
			  }
			}
for(i = 0;i < a;i++)
	if(l[i] != '0') k++;
printf("%d",k);
}
