
import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        HashMap<String, Integer> HM = new HashMap();

        for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        }
        System.out.println(HM.size());
    }
} import java.util.*; util.* java import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        HashMap<String, Integer> HM = new HashMap();

        for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        }
        System.out.println(HM.size());
    }
} Main public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        HashMap<String, Integer> HM = new HashMap();

        for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        }
        System.out.println(HM.size());
    } main {

        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        HashMap<String, Integer> HM = new HashMap();

        for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        }
        System.out.println(HM.size());
    } Scanner Input = new Scanner(System.in); Input new Scanner(System.in) int N = Input.nextInt(); N Input.nextInt() Input.nextInt Input HashMap<String, Integer> HM = new HashMap(); HM new HashMap() for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        } int I = 0; int I = 0; I 0 I < N I N I++ I++ I {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        } {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        } String S = Input.next(); S Input.next() Input.next Input if (!HM.containsKey(S)) {
                HM.put(S, 0);
            } !HM.containsKey(S) HM.containsKey(S) HM.containsKey HM S {
                HM.put(S, 0);
            } HM.put(S, 0) HM.put HM S 0 System.out.println(HM.size()) System.out.println System.out System System.out HM.size() HM.size HM String[] args args public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        HashMap<String, Integer> HM = new HashMap();

        for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        }
        System.out.println(HM.size());
    }
} public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        HashMap<String, Integer> HM = new HashMap();

        for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        }
        System.out.println(HM.size());
    }
} Main

import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        HashMap<String, Integer> HM = new HashMap();

        for (int I = 0; I < N; I++) {
            String S = Input.next();
            if (!HM.containsKey(S)) {
                HM.put(S, 0);
            }
        }
        System.out.println(HM.size());
    }
}
