import java.util.*;


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

        System.out.println(gift.size());

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

        System.out.println(gift.size());

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        Set<String> gift = new HashSet<String>(); 
        int N = sc.nextInt();
        sc.nextLine();
        
        for (int i = 0; i < N; i++) {
            gift.add(sc.nextLine());
        }

        System.out.println(gift.size());

    } main {
        Scanner sc = new Scanner(System.in);
        
        Set<String> gift = new HashSet<String>(); 
        int N = sc.nextInt();
        sc.nextLine();
        
        for (int i = 0; i < N; i++) {
            gift.add(sc.nextLine());
        }

        System.out.println(gift.size());

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

        System.out.println(gift.size());

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

        System.out.println(gift.size());

    }
} Main
import java.util.*;


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

        System.out.println(gift.size());

    }
}