import java.util.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer N = Integer.parseInt(scanner.next());
        List<String> S = new ArrayList<>();
        Map<String, Integer> R = new HashMap<String, Integer>();


        for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        }

        for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        }

        System.out.println(R.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer N = Integer.parseInt(scanner.next());
        List<String> S = new ArrayList<>();
        Map<String, Integer> R = new HashMap<String, Integer>();


        for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        }

        for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        }

        System.out.println(R.size());
    }
} Main public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer N = Integer.parseInt(scanner.next());
        List<String> S = new ArrayList<>();
        Map<String, Integer> R = new HashMap<String, Integer>();


        for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        }

        for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        }

        System.out.println(R.size());
    } main {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer N = Integer.parseInt(scanner.next());
        List<String> S = new ArrayList<>();
        Map<String, Integer> R = new HashMap<String, Integer>();


        for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        }

        for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        }

        System.out.println(R.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner List<String> S = new ArrayList<>(); S new ArrayList<>() Map<String, Integer> R = new HashMap<String, Integer>(); R new HashMap<String, Integer>() for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            S.add(scanner.next());
        } {
            S.add(scanner.next());
        } S.add(scanner.next()) S.add S scanner.next() scanner.next scanner for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        } String temp S {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        } {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        } Integer count = R.get(temp); count R.get(temp) R.get R temp R.put(temp, (count == null) ? 1 : count + 1) R.put R temp (count == null) ? 1 : count + 1 (count == null) count null 1 count + 1 count 1 System.out.println(R.size()) System.out.println System.out System System.out R.size() R.size R String[] args args public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer N = Integer.parseInt(scanner.next());
        List<String> S = new ArrayList<>();
        Map<String, Integer> R = new HashMap<String, Integer>();


        for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        }

        for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        }

        System.out.println(R.size());
    }
} public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer N = Integer.parseInt(scanner.next());
        List<String> S = new ArrayList<>();
        Map<String, Integer> R = new HashMap<String, Integer>();


        for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        }

        for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        }

        System.out.println(R.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer N = Integer.parseInt(scanner.next());
        List<String> S = new ArrayList<>();
        Map<String, Integer> R = new HashMap<String, Integer>();


        for (int i = 0; i < N; i++) {
            S.add(scanner.next());
        }

        for (String temp : S) {
            Integer count = R.get(temp);
            R.put(temp, (count == null) ? 1 : count + 1);
        }

        System.out.println(R.size());
    }
}
