#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#pragma warning(disable : 4996) //_CRT_SECURE_NO_WARNINGS
int compare(const void* a, const void* b) {
	return strcmp(*((char**)a), *((char**)b));
}
int main() {
	long N;
	scanf("%ld", &N);
	char** list;
	int head, tail,res;
	list = (char*)malloc(sizeof(char*) * N);
	for (long i = 0;i < N;i++) {
		list[i] = malloc(sizeof(char) * 11);
		scanf("%s", list[i]);
	}
	/*辞書順にソート*/
	qsort(list, N, sizeof(list[0]), compare);
	for (res=1,head = 0, tail = 1;tail < N;) {
		if (strcmp(list[head], list[tail]) == 0) {
			tail++;
		}
		else {
			res += 1;
			head = tail;
			tail += 1;
		}
	}
	printf("%d", res);
	for (long i = 0;i < N;i++) {
		free(list[i]);
		list[i] = NULL;
	}
	free(list);
	list = NULL;
	return 0;
}