import java.util.*;

public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[]str = new String[N];
        
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        }
            
        
        
        System.out.println(set.size());
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[]str = new String[N];
        
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        }
            
        
        
        System.out.println(set.size());
    }
} Main public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[]str = new String[N];
        
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        }
            
        
        
        System.out.println(set.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[]str = new String[N];
        
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        }
            
        
        
        System.out.println(set.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[]str = new String[N]; str new String[N] N Set<String> set = new HashSet<String>(); set new HashSet<String>() for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            str[i]=sc.next();
            set.add(str[i]);
        } {
            str[i]=sc.next();
            set.add(str[i]);
        } str[i]=sc.next() str[i] str i sc.next() sc.next sc set.add(str[i]) set.add set str[i] str i System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[]args args public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[]str = new String[N];
        
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        }
            
        
        
        System.out.println(set.size());
    }
} public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[]str = new String[N];
        
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        }
            
        
        
        System.out.println(set.size());
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[]str = new String[N];
        
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++){
            str[i]=sc.next();
            set.add(str[i]);
        }
            
        
        
        System.out.println(set.size());
    }
}