import java.util.*;

public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> prizes = new HashSet<>();
        for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        }
        sc.close();

        System.out.println(prizes.size());

    }

} import java.util.*; util.* java public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> prizes = new HashSet<>();
        for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        }
        sc.close();

        System.out.println(prizes.size());

    }

} Main public static List<List<Integer>> switchList; switchList public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> prizes = new HashSet<>();
        for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        }
        sc.close();

        System.out.println(prizes.size());

    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> prizes = new HashSet<>();
        for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        }
        sc.close();

        System.out.println(prizes.size());

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Set<String> prizes = new HashSet<>(); prizes new HashSet<>() for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        } {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        } String val = sc.next(); val sc.next() sc.next sc if (!prizes.contains(val)) {
                prizes.add(val);
            } !prizes.contains(val) prizes.contains(val) prizes.contains prizes val {
                prizes.add(val);
            } prizes.add(val) prizes.add prizes val sc.close() sc.close sc System.out.println(prizes.size()) System.out.println System.out System System.out prizes.size() prizes.size prizes String[] args args public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> prizes = new HashSet<>();
        for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        }
        sc.close();

        System.out.println(prizes.size());

    }

} public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> prizes = new HashSet<>();
        for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        }
        sc.close();

        System.out.println(prizes.size());

    }

} Main
import java.util.*;

public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> prizes = new HashSet<>();
        for (int i = 0; i < N; i++) {
            String val = sc.next();
            if (!prizes.contains(val)) {
                prizes.add(val);
            }
        }
        sc.close();

        System.out.println(prizes.size());

    }

}