#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long ll;
typedef long double ld;
#define M(x,y) ((x)>(y)?(x):(y))
#define m(x,y) ((x)<(y)?(x):(y))

int main() {
	int n, ans;
	char s[200010][10];
	scanf("%d\n", &n);
	ans = n;
	rep(i, n) {	scanf("%s", &s[i]);	}
	qsort(s, n, 10, strcmp);
	rep(i, n - 1) {if(strcmp(s[i], s[i + 1]) == 0)ans--;}
	printf("%d", ans);
}