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

public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        Set<String> list = new HashSet<>();
        for (int i = 0; i < N; i++) {
            list.add(scanner.next());
        }
        System.out.println(list.stream().count());
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        Set<String> list = new HashSet<>();
        for (int i = 0; i < N; i++) {
            list.add(scanner.next());
        }
        System.out.println(list.stream().count());
    }
} Main public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        Set<String> list = new HashSet<>();
        for (int i = 0; i < N; i++) {
            list.add(scanner.next());
        }
        System.out.println(list.stream().count());
    } main {

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

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

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        Set<String> list = new HashSet<>();
        for (int i = 0; i < N; i++) {
            list.add(scanner.next());
        }
        System.out.println(list.stream().count());
    }
} public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        Set<String> list = new HashSet<>();
        for (int i = 0; i < N; i++) {
            list.add(scanner.next());
        }
        System.out.println(list.stream().count());
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        Set<String> list = new HashSet<>();
        for (int i = 0; i < N; i++) {
            list.add(scanner.next());
        }
        System.out.println(list.stream().count());
    }
}