#include <bits/stdc++.h>
#define ll long long
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
	ll t;
	cin>>t;
	 map<string,ll>mp;
	while(t--){
	    
	   
	    
	        string s;
	        cin>>s;
	        mp[s]++;
	    
	   
	}
	 cout<<mp.size();
	return 0;
}