#include<stdio.h>
#include<stdlib.h>
int IsSame(char *str1, char *str2){
	for(; *str1 == *str2; str1++, str2++){
		if(*str1 == '\0')
			return 0;
	}
	return 1;
}
int main(){
	int N, count = 0;
	scanf("%d", &N);
	char *str[N];
	for(int str_i = 0; str_i < N; str_i++){
		int str_j;
		str[str_i] = (char *) malloc(sizeof(char) * 11);
		scanf("%s", str[str_i]);
		for(str_j = 0; str_j < str_i; str_j++){
			if(IsSame(str[str_i], str[str_j]) == 0)
				break;
		}
		if(str_j == str_i)
			count++;
	}
	printf("%d", count);
	return 0;
}