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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        scanner.nextLine();
        HashSet<String> result = new HashSet<>();
        for (int i = 0; i < num; i++) {
            String gacha = scanner.nextLine();
            result.add(gacha);
        }
        System.out.println(result.size());
    }
} import java.util.Scanner; Scanner java.util import java.util.HashSet; HashSet java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        scanner.nextLine();
        HashSet<String> result = new HashSet<>();
        for (int i = 0; i < num; i++) {
            String gacha = scanner.nextLine();
            result.add(gacha);
        }
        System.out.println(result.size());
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        scanner.nextLine();
        HashSet<String> result = new HashSet<>();
        for (int i = 0; i < num; i++) {
            String gacha = scanner.nextLine();
            result.add(gacha);
        }
        System.out.println(result.size());
    } main {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        scanner.nextLine();
        HashSet<String> result = new HashSet<>();
        for (int i = 0; i < num; i++) {
            String gacha = scanner.nextLine();
            result.add(gacha);
        }
        System.out.println(result.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int num = scanner.nextInt(); num scanner.nextInt() scanner.nextInt scanner scanner.nextLine() scanner.nextLine scanner HashSet<String> result = new HashSet<>(); result new HashSet<>() for (int i = 0; i < num; i++) {
            String gacha = scanner.nextLine();
            result.add(gacha);
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            String gacha = scanner.nextLine();
            result.add(gacha);
        } {
            String gacha = scanner.nextLine();
            result.add(gacha);
        } String gacha = scanner.nextLine(); gacha scanner.nextLine() scanner.nextLine scanner result.add(gacha) result.add result gacha System.out.println(result.size()) System.out.println System.out System System.out result.size() result.size result String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        scanner.nextLine();
        HashSet<String> result = new HashSet<>();
        for (int i = 0; i < num; i++) {
            String gacha = scanner.nextLine();
            result.add(gacha);
        }
        System.out.println(result.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        scanner.nextLine();
        HashSet<String> result = new HashSet<>();
        for (int i = 0; i < num; i++) {
            String gacha = scanner.nextLine();
            result.add(gacha);
        }
        System.out.println(result.size());
    }
} Main
import java.util.Scanner;
import java.util.HashSet;

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