#include <bits/stdc++.h>
using namespace std;
int n,ans;string a;map<string,bool> vs;
int main()
{
	scanf("%d",&n);
	for(int i=1;i<=n;++i) {cin>>a;if(!vs[a]) vs[a]=1,++ans;}
	printf("%d\n",ans);return 0;
}