import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(in.readLine()); N Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in int count = 0; count 0 HashMap<String, Integer> map = new HashMap<String, Integer>(); map new HashMap<String, Integer>() for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		} {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		} String str = in.readLine(); str in.readLine() in.readLine in if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			} !map.containsKey(str) map.containsKey(str) map.containsKey map str {
				map.put(str, 1);
				count++;
			} map.put(str, 1) map.put map str 1 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	}
}
