//
//   “Daḷhaṃ sikkhatha santiyā.” - Utthana Sutta (Sutta Nipata) 
//    Saket Saumya 
//    APR 26 2020
//

#include<bits/stdc++.h>
#include<string.h>
using namespace std;


#define ll long long 
#define all(x) x.begin(),x.end()
#define RESET   "\033[0m"
#define RED     "\033[31m"      /* Red */
#define what_is(x) cerr << RED << #x << " is " << x  << RESET << endl;
 

const long long MOD = 1e9+7 ;
const int N=(2e5)+5;
const long long INF=1LL << 57;
 
// Data Structures
vector <ll> vec(N),v1, v2, v3;
vector < pair <ll, pair < ll , ll >  > > vp, vp1, vp2;
set < ll > se;
unordered_set <ll > use;
multiset < ll > ms;
map <  ll, ll > mp, done, mp1;
unordered_map < ll, ll > ump;


ll t, n, m, p, q, x, y, a, b, c, mini= LLONG_MAX, maxi= LLONG_MIN,res, ans;


queue <pair <ll, ll > > bfsq;
ll vis[N];
vector < ll >  adj[N], adj1[N];
ll visited[1005][1005] ;
char mat[1005][1005];
ll dp[1005][1005];


//<-------------------------------------------CODE STARTS HERE --------------------------------------------------------------->//

string s;
signed  main(){
        
            ios_base::sync_with_stdio(false);
            cin.tie(nullptr);cout.tie(nullptr);
           
                    
            set <string> ss;
            cin >> n;
            while (n-- ){
                    cin >> s;
                    ss.insert(s);
            }
            cout << ss.size() << endl;

















            
             
            

            
            
            
            



            
            























                
                
                
 
                
 
 
 
        
        
 
 
 
}       
       
 
 
       
       
       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 
       
 
 
       
       
       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 

       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 
       
 
 
       
       
       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 


