import java.io.IOException;
import java.io.PrintStream;
import java.util.HashSet;
import java.util.Scanner;

public class Main {
	static PrintStream o = System.out;

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashSet<String> get = new HashSet<String>(n);
		int res = 0;
		sc.nextLine();
		String one;
		for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		}
		o.println(res);
	}
} import java.io.IOException; IOException java.io import java.io.PrintStream; PrintStream java.io import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
	static PrintStream o = System.out;

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashSet<String> get = new HashSet<String>(n);
		int res = 0;
		sc.nextLine();
		String one;
		for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		}
		o.println(res);
	}
} Main static PrintStream o = System.out; o System.out System System.out public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashSet<String> get = new HashSet<String>(n);
		int res = 0;
		sc.nextLine();
		String one;
		for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		}
		o.println(res);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashSet<String> get = new HashSet<String>(n);
		int res = 0;
		sc.nextLine();
		String one;
		for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		}
		o.println(res);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc HashSet<String> get = new HashSet<String>(n); get new HashSet<String>(n) int res = 0; res 0 sc.nextLine() sc.nextLine sc String one; one for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		} {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		} one = sc.nextLine() one sc.nextLine() sc.nextLine sc if (!get.contains(one)) {
				get.add(one);
				res++;
			} !get.contains(one) get.contains(one) get.contains get one {
				get.add(one);
				res++;
			} get.add(one) get.add get one res++ res o.println(res) o.println o res String[] args args public class Main {
	static PrintStream o = System.out;

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashSet<String> get = new HashSet<String>(n);
		int res = 0;
		sc.nextLine();
		String one;
		for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		}
		o.println(res);
	}
} public class Main {
	static PrintStream o = System.out;

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashSet<String> get = new HashSet<String>(n);
		int res = 0;
		sc.nextLine();
		String one;
		for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		}
		o.println(res);
	}
} Main
import java.io.IOException;
import java.io.PrintStream;
import java.util.HashSet;
import java.util.Scanner;

public class Main {
	static PrintStream o = System.out;

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashSet<String> get = new HashSet<String>(n);
		int res = 0;
		sc.nextLine();
		String one;
		for (int i = 0; i < n; i++) {
			one = sc.nextLine();
			if (!get.contains(one)) {
				get.add(one);
				res++;
			}
		}
		o.println(res);
	}
}