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

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

                int N = scan.nextInt();

                HashMap<String, Integer> Shash = new HashMap<String, Integer>();

                for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                }

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

        }

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

                int N = scan.nextInt();

                HashMap<String, Integer> Shash = new HashMap<String, Integer>();

                for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                }

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

        }

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

                int N = scan.nextInt();

                HashMap<String, Integer> Shash = new HashMap<String, Integer>();

                for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                }

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

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

                int N = scan.nextInt();

                HashMap<String, Integer> Shash = new HashMap<String, Integer>();

                for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                }

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

        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan HashMap<String, Integer> Shash = new HashMap<String, Integer>(); Shash new HashMap<String, Integer>() for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                } {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                } String s = scan.next(); s scan.next() scan.next scan if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	} !Shash.containsKey(s) Shash.containsKey(s) Shash.containsKey Shash s {
                		Shash.put(s, 1);
                	} Shash.put(s, 1) Shash.put Shash s 1 System.out.println(Shash.size()) System.out.println System.out System System.out Shash.size() Shash.size Shash String[] args args public class Main {
        public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);

                int N = scan.nextInt();

                HashMap<String, Integer> Shash = new HashMap<String, Integer>();

                for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                }

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

        }

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

                int N = scan.nextInt();

                HashMap<String, Integer> Shash = new HashMap<String, Integer>();

                for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                }

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

        }

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

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

                int N = scan.nextInt();

                HashMap<String, Integer> Shash = new HashMap<String, Integer>();

                for (int i = 0; i < N; i++) {
                	String s = scan.next();
                	if (!Shash.containsKey(s)) {
                		Shash.put(s, 1);
                	}
                }

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

        }

}