import java.util.*;

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

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