import java.util.*;

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

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

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

    } main {
        HashSet<String> seen = new HashSet<>();
        Scanner sc = new Scanner(System.in);
        int tests = sc.nextInt();
        for (int t = 0; t < tests; t++) seen.add(sc.next());
        System.out.println(seen.size());

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

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

    }
} Main
import java.util.*;

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

    }
}