import java.util.*;

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

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