import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        }

        scanner.close();

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

    }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        }

        scanner.close();

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

    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        }

        scanner.close();

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

    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        }

        scanner.close();

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

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner Map<String, Integer> map = new HashMap<>(); map new HashMap<>() for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        } {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        } String temp = scanner.next(); temp scanner.next() scanner.next scanner Integer index = map.get(temp); index map.get(temp) map.get map temp map.put(temp, index == null ? 1 : index + 1) map.put map temp index == null ? 1 : index + 1 index == null index null 1 index + 1 index 1 scanner.close() scanner.close scanner System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        }

        scanner.close();

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

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        }

        scanner.close();

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

    }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < N; i++) {
            String temp = scanner.next();
            Integer index = map.get(temp);
            map.put(temp, index == null ? 1 : index + 1);
        }

        scanner.close();

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

    }
}