
import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;

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

} import java.util.HashMap; HashMap java.util import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        HashSet<String> kind = new HashSet<>();
        int N = in.nextInt();
        in.nextLine();
        for(int i = 1; i <= N; i++){
            kind.add(in.nextLine());
        }
        System.out.print(kind.size());
    }

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

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

} Main

import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;

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

}
