#include "pch.h"
#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
		char str[200000][11];
		char cmps[200000][11];
		int N;
		int i,j,find=0,cnt=0;

		cin >> N;
		for (i = 0; i < N; i++) {
			cin >> str[i];
			cmps[i][0] = 0;
			for (j = i; j >= 0; j--) {
				if ((strcmp(str[i], cmps[j])) == 0) {
					find = 1;
					break;
				}
			}
			if (find != 1) {
				strcpy(cmps[cnt], str[i]);
				cnt++;
			}
			find = 0;
		}
		cout << cnt;
}