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

int main(){
	int N;
	scanf("%d", &N);
	char **buf, *s;
	buf = (char **)malloc(sizeof(char *)*N);
	int i = 0, j = 0, k = 0, count = 0;
	for(i = 0; i < N; i++){
		buf[i] = (char *)malloc(sizeof(char)*10);
	}
	s = (char *)malloc(sizeof(char)*10);
	scanf("%s", buf[0]);
	k++; count++;
	for(i = 1; i < N; i++){
		scanf("%s", s);
		
		for(j = 0; j < k; j++){
			if(strcmp(buf[j], s) == 0){
				break;
			}
		}
		if(j == k){
				strcpy(buf[k], s);
				k++;
				count++;
		}
	}
	printf("%d\n", count);
	return 0;
}