import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        }
        List<String> listb = new ArrayList<String>(new HashSet<>(list));
        sc.close();
        System.out.println(listb.size());
    
        
    }
} import java.util.ArrayList; ArrayList java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        }
        List<String> listb = new ArrayList<String>(new HashSet<>(list));
        sc.close();
        System.out.println(listb.size());
    
        
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        }
        List<String> listb = new ArrayList<String>(new HashSet<>(list));
        sc.close();
        System.out.println(listb.size());
    
        
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        }
        List<String> listb = new ArrayList<String>(new HashSet<>(list));
        sc.close();
        System.out.println(listb.size());
    
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<String> list = new ArrayList<>(); list new ArrayList<>() for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String s  = sc.next();
            list.add(s);
        } {
            String s  = sc.next();
            list.add(s);
        } String s  = sc.next(); s sc.next() sc.next sc list.add(s) list.add list s List<String> listb = new ArrayList<String>(new HashSet<>(list)); listb new ArrayList<String>(new HashSet<>(list)) sc.close() sc.close sc System.out.println(listb.size()) System.out.println System.out System System.out listb.size() listb.size listb String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        }
        List<String> listb = new ArrayList<String>(new HashSet<>(list));
        sc.close();
        System.out.println(listb.size());
    
        
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        }
        List<String> listb = new ArrayList<String>(new HashSet<>(list));
        sc.close();
        System.out.println(listb.size());
    
        
    }
} Main
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0;i<n;i++){
            String s  = sc.next();
            list.add(s);
        }
        List<String> listb = new ArrayList<String>(new HashSet<>(list));
        sc.close();
        System.out.println(listb.size());
    
        
    }
}