#include <stdio.h>
#include <string.h>
#include <stdlib.h>

//char S[200010][10];

int compare_string(const void *a, const void *b) {
  return strcmp(*(char **)a, *(char **)b);
}
int main(){
	int N;
	char cmp[10];
	char **S;
	int flag=1;
	scanf("%d\n",&N);
	
	
	
	int i,j,cnt=0;
	
	S = (char**)malloc(sizeof(char*)*N);
	for(i=0;i<N;i++){
		S[i]=(char*)malloc(sizeof(char)*10);
		scanf("%s",cmp);
		strcpy(S[i],cmp);
	}

	qsort((void *)S, N, sizeof(S[0]), compare_string);
	
	for(i=0; i<N-1; i++) {
        //printf("%d, %s,%s\n",i, S[i],S[i+1]);
		if(strcmp(S[i],S[i+1])!=0){
			cnt++;
		}
    }

	cnt++;
	printf("%d\n",cnt);

	free(S);
	return 0;
}