#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define BUFSIZE 100
int N;

int count=0;
 char str[BUFSIZE][BUFSIZE];

int string_compar(const void *a, const void *b)
{
    return(strcmp((char*)a, (char*)b));
}



int main(void){
  scanf("%d",&N);
  for(int j=0;j<N;j++){
    scanf("%s",str[j]);
  }
  
  	int data_cnt = sizeof( str )/sizeof( str[0] );
	 
	qsort((void *) str, N , 11, string_compar);
	
	

	for(int i = 0;i < N-1;i++){
		if(strcmp(str[i],str[i+1])!=0){
				count++;
				
			}
		}
	
	printf("%d",count);

}