import java.util.*;

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

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        Set<String> gacha = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            gacha.add(sc.next());
        }
        
        System.out.println(gacha.size());
        
    }
}
