#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct s{
	char s[11];
};

int compare_s(const void *a, const void *b){
	struct s *A = (struct s *)a;
	struct s *B = (struct s *)b;
	char *a_s = (char *)A->s;
	char *b_s = (char *)B->s;
	return strcmp(a_s, b_s);
}

int main(void){
	int n;
	int count = 1;
	struct s *ss;
	scanf("%d", &n);
	ss = (struct s *)malloc(sizeof(struct s) * n);
	for(int i=0; i<n; i++){
		char tmp_s[11] = { '\0' };
		scanf("%s", tmp_s);
		strcpy(ss[i].s, tmp_s);
	}
	qsort(ss, n, sizeof(struct s), compare_s);
	for(int j; j<n-1; j++){
		if(strcmp(ss[j].s, ss[j+1].s) != 0){
			count++;
		}
	}
	printf("%d\n", count);
}