
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

    /*
     * https://atcoder.jp/contests/abc164/tasks/abc164_c
     */

    public static void main(String[] args) {

        Scanner stdIn = new Scanner(System.in);
        int jogen = Integer.parseInt(stdIn.nextLine());

        Set<String> gacha = new HashSet<>(jogen);
        for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        }
        stdIn.close();

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

    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

    /*
     * https://atcoder.jp/contests/abc164/tasks/abc164_c
     */

    public static void main(String[] args) {

        Scanner stdIn = new Scanner(System.in);
        int jogen = Integer.parseInt(stdIn.nextLine());

        Set<String> gacha = new HashSet<>(jogen);
        for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        }
        stdIn.close();

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

    }
} Main public static void main(String[] args) {

        Scanner stdIn = new Scanner(System.in);
        int jogen = Integer.parseInt(stdIn.nextLine());

        Set<String> gacha = new HashSet<>(jogen);
        for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        }
        stdIn.close();

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

    } main {

        Scanner stdIn = new Scanner(System.in);
        int jogen = Integer.parseInt(stdIn.nextLine());

        Set<String> gacha = new HashSet<>(jogen);
        for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        }
        stdIn.close();

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

    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int jogen = Integer.parseInt(stdIn.nextLine()); jogen Integer.parseInt(stdIn.nextLine()) Integer.parseInt Integer stdIn.nextLine() stdIn.nextLine stdIn Set<String> gacha = new HashSet<>(jogen); gacha new HashSet<>(jogen) for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        } int i = 0; int i = 0; i 0 i < jogen i jogen i++ i++ i {
            gacha.add(stdIn.nextLine());
        } {
            gacha.add(stdIn.nextLine());
        } gacha.add(stdIn.nextLine()) gacha.add gacha stdIn.nextLine() stdIn.nextLine stdIn stdIn.close() stdIn.close stdIn System.out.println(gacha.size()) System.out.println System.out System System.out gacha.size() gacha.size gacha String[] args args public class Main {

    /*
     * https://atcoder.jp/contests/abc164/tasks/abc164_c
     */

    public static void main(String[] args) {

        Scanner stdIn = new Scanner(System.in);
        int jogen = Integer.parseInt(stdIn.nextLine());

        Set<String> gacha = new HashSet<>(jogen);
        for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        }
        stdIn.close();

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

    }
} public class Main {

    /*
     * https://atcoder.jp/contests/abc164/tasks/abc164_c
     */

    public static void main(String[] args) {

        Scanner stdIn = new Scanner(System.in);
        int jogen = Integer.parseInt(stdIn.nextLine());

        Set<String> gacha = new HashSet<>(jogen);
        for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        }
        stdIn.close();

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

    }
} Main

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

    /*
     * https://atcoder.jp/contests/abc164/tasks/abc164_c
     */

    public static void main(String[] args) {

        Scanner stdIn = new Scanner(System.in);
        int jogen = Integer.parseInt(stdIn.nextLine());

        Set<String> gacha = new HashSet<>(jogen);
        for (int i = 0; i < jogen; i++) {
            gacha.add(stdIn.nextLine());
        }
        stdIn.close();

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

    }
}