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

public class Main {
    public static void main(String[] args) {
        try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        }
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        }
    }
} Main public static void main(String[] args) {
        try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        }
    } main {
        try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        }
    } try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        } {
            int N = sc.nextInt();
            String[] S = new String[N];
            for (int i = 0; i < N; i++) {
                S[i] = sc.next();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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 HashSet<String> set = new HashSet<String>(); set new HashSet<String>() 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 System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[] args args public class Main {
    public static void main(String[] args) {
        try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        }
    }
} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (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();
            }

            HashSet<String> set = new HashSet<String>();
            for (int i = 0; i < N; i++) {
                set.add(S[i]);
            }
            System.out.println(set.size());
        }
    }
}
