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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        HashSet<String> gacha = new HashSet<>();
        for (int i = 0; i < n; i++){
            gacha.add(scanner.nextLine());
        }
        System.out.println(gacha.size());
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        HashSet<String> gacha = new HashSet<>();
        for (int i = 0; i < n; i++){
            gacha.add(scanner.nextLine());
        }
        System.out.println(gacha.size());
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        HashSet<String> gacha = new HashSet<>();
        for (int i = 0; i < n; i++){
            gacha.add(scanner.nextLine());
        }
        System.out.println(gacha.size());
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        HashSet<String> gacha = new HashSet<>();
        for (int i = 0; i < n; i++){
            gacha.add(scanner.nextLine());
        }
        System.out.println(gacha.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner HashSet<String> gacha = new HashSet<>(); gacha new HashSet<>() for (int i = 0; i < n; i++){
            gacha.add(scanner.nextLine());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            gacha.add(scanner.nextLine());
        } {
            gacha.add(scanner.nextLine());
        } gacha.add(scanner.nextLine()) gacha.add gacha scanner.nextLine() scanner.nextLine scanner 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) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        HashSet<String> gacha = new HashSet<>();
        for (int i = 0; i < n; i++){
            gacha.add(scanner.nextLine());
        }
        System.out.println(gacha.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        HashSet<String> gacha = new HashSet<>();
        for (int i = 0; i < n; i++){
            gacha.add(scanner.nextLine());
        }
        System.out.println(gacha.size());
    }
} Main
import java.util.HashSet;
import java.util.Scanner;

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