//psudora
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long int
#define pb push_back
#define  mod 1000000007
#define pi 3.1415926535
#define flash ios::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL)
const int INF = 1e9+5;
typedef pair<int, int> iPair;
#ifdef _DEBUG
//	freopen("input.txt", "r", stdin);
//	freopen("output.txt", "w", stdout);
#endif
int main(){
	int n;
	cin>>n;
	set<string>st;
	for(int i=0;i<n;i++){
		string s;
		cin>>s;
		st.insert(s);
	}
	cout<<(int)st.size()<<endl;
	return 0;
}
