#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define P 10

int main(void) {
	int n;
	int count = 1;

	char** s;

	scanf("%d", &n);

	s = (char**)malloc(sizeof(char*) * n);

	for (int i = 0; i < n; i++) {
		s[i] = (char*)malloc(sizeof(char) * P);
	}

	for (int i = 0; i < n; i++) {
		scanf("%s", s[i]);
		for (int a = 0; a < i; a++) {
			if (strcmp(s[a], s[i]) == 0) {
				break;
			}
			if (a + 1 == i) {
				count++;
			}
		}
	}

	printf("%d", count);


	for (int a = 0; a < n; a++) {
		free(s[a]);
	}

	free(s);

	return 0;
}