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

int main()
{
	int i, j, n, ret;
	int N;
	char **S;
	char **Depot;
	int hit;
	ret = scanf("%d", &N);
	
	S = (char **) malloc(sizeof(char *)*N);
	for (i = 0;i < N; i++) {
		S[i] = (char *) malloc(sizeof(char)*11);
	}
	Depot = (char **) malloc(sizeof(char*)*N);
	for (i = 0;i < N; i++) {
		Depot[i] = (char *) malloc(sizeof(char)*11);
	}
	for (i = 0; i < N; i++){
		ret = scanf("%s\n", S[i]);
	}
	for (i = 0; i < N; i++)
		memset(Depot[i], 0, 11);
	memcpy(Depot[0], S[0],strlen(S[0]));
	n = 0;
	hit = 0;
	for (j = 1; j < N; j++) {
		for (i=0; i<=n; i++) {
			if (strcmp(Depot[i], S[j]) == 0){
				hit = 1;
				break;
			}
        }
        if(hit == 0) {
			n++;
			strcpy(Depot[n], S[j]);
        }
	}

	printf("%d\n",n+1);
	fflush(stdout);
	free(S);
	free(Depot);
	return EXIT_SUCCESS;
}
