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

public class Main {
    private static final int MOD = 1_000_000_007;
    private static final String YES = "Yes";
    private static final String NO = "No";

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

        int N = sc.nextInt();
        String[] S = new String[N];
        for (int i=0; i<N; i++) {
            S[i] = sc.next();
        }

        System.out.println(solve(N, S));
    }

    private static int solve(int N, String[] S) {
        Set<String> set = new HashSet();

        for (int i=0; i<N; i++) {
            set.add(S[i]);
        }

        return set.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 {
    private static final int MOD = 1_000_000_007;
    private static final String YES = "Yes";
    private static final String NO = "No";

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

        int N = sc.nextInt();
        String[] S = new String[N];
        for (int i=0; i<N; i++) {
            S[i] = sc.next();
        }

        System.out.println(solve(N, S));
    }

    private static int solve(int N, String[] S) {
        Set<String> set = new HashSet();

        for (int i=0; i<N; i++) {
            set.add(S[i]);
        }

        return set.size();
    }
} Main private static final int MOD = 1_000_000_007; MOD 1_000_000_007 private static final String YES = "Yes"; YES "Yes" private static final String NO = "No"; NO "No" public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        for (int i=0; i<N; i++) {
            S[i] = sc.next();
        }

        System.out.println(solve(N, S));
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        for (int i=0; i<N; i++) {
            S[i] = sc.next();
        }

        System.out.println(solve(N, S));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] S = new String[N]; S new String[N] N for (int i=0; i<N; i++) {
            S[i] = sc.next();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            S[i] = sc.next();
        } {
            S[i] = sc.next();
        } S[i] = sc.next() S[i] S i sc.next() sc.next sc System.out.println(solve(N, S)) System.out.println System.out System System.out solve(N, S) solve N S String[] args args private static int solve(int N, String[] S) {
        Set<String> set = new HashSet();

        for (int i=0; i<N; i++) {
            set.add(S[i]);
        }

        return set.size();
    } solve {
        Set<String> set = new HashSet();

        for (int i=0; i<N; i++) {
            set.add(S[i]);
        }

        return set.size();
    } Set<String> set = new HashSet(); set new HashSet() for (int i=0; i<N; i++) {
            set.add(S[i]);
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            set.add(S[i]);
        } {
            set.add(S[i]);
        } set.add(S[i]) set.add set S[i] S i return set.size(); set.size() set.size set int N N String[] S S public class Main {
    private static final int MOD = 1_000_000_007;
    private static final String YES = "Yes";
    private static final String NO = "No";

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

        int N = sc.nextInt();
        String[] S = new String[N];
        for (int i=0; i<N; i++) {
            S[i] = sc.next();
        }

        System.out.println(solve(N, S));
    }

    private static int solve(int N, String[] S) {
        Set<String> set = new HashSet();

        for (int i=0; i<N; i++) {
            set.add(S[i]);
        }

        return set.size();
    }
} public class Main {
    private static final int MOD = 1_000_000_007;
    private static final String YES = "Yes";
    private static final String NO = "No";

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

        int N = sc.nextInt();
        String[] S = new String[N];
        for (int i=0; i<N; i++) {
            S[i] = sc.next();
        }

        System.out.println(solve(N, S));
    }

    private static int solve(int N, String[] S) {
        Set<String> set = new HashSet();

        for (int i=0; i<N; i++) {
            set.add(S[i]);
        }

        return set.size();
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    private static final int MOD = 1_000_000_007;
    private static final String YES = "Yes";
    private static final String NO = "No";

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

        int N = sc.nextInt();
        String[] S = new String[N];
        for (int i=0; i<N; i++) {
            S[i] = sc.next();
        }

        System.out.println(solve(N, S));
    }

    private static int solve(int N, String[] S) {
        Set<String> set = new HashSet();

        for (int i=0; i<N; i++) {
            set.add(S[i]);
        }

        return set.size();
    }
}