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

#define MAX 200010

int main()
{
	int i, j;
	int count = 0;
	int n;
	int flag=1;
	char s[MAX];
	char* data[MAX] = { '\0' };

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		scanf("%s", s);

		j = 0;
		while (data[j] != '\0') {
			if (strcmp(&data[j], s) == 0) {
				flag = 0;
				break;
			}
			j++;
		}
			count += flag;

			if (flag == 1)
				strcpy(&data[j], s);

			flag = 1;
		}
	
	printf("%d\n", count);

	return 0;
}