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

char** gotType;

int main(void) {

	int num = 0;

	scanf("%d%*c", &num);

	gotType = (char**)malloc(sizeof(char*) * num);

	char result[11];

	scanf("%s%*c", result);

	gotType[0] = result;

	int count = 1;

	char temp[11];

	for (int i = 1; i < num; i++) {

		scanf("%s%*c", temp);

		for (int c = 0; c < count; c++) {

			if (strcmp(gotType[c], temp) != 0) {

				gotType[i] = temp;

				count++;

			}

		}

	}

	printf("%d\n", count);

	free(gotType);

	return 0;

}