#include<bits/stdc++.h>
#define LL long long
#define FOR(i,a,b) for(int i=a;i<=b;++i)
using namespace std;

const int mn=1e5+7;
string s[mn],t;

int main()
{
	int n,ans=0;
	scanf("%d",&n);
	FOR(i,1,n) cin>>s[i];
	sort(s+1,s+n+1);
	FOR(i,1,n) if(s[i]!=t) t=s[i],ans++;
	cout<<ans;
}