import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader bw = new BufferedReader(new InputStreamReader(System.in));
		String s = bw.readLine();
		int N = Integer.parseInt(s); 
		HashSet<String> set = new HashSet<String>();
		int res = 0;
		for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		}
		System.out.println(res);
		bw.close();
	}
	 
	
}	
 import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashSet; HashSet java.util public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader bw = new BufferedReader(new InputStreamReader(System.in));
		String s = bw.readLine();
		int N = Integer.parseInt(s); 
		HashSet<String> set = new HashSet<String>();
		int res = 0;
		for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		}
		System.out.println(res);
		bw.close();
	}
	 
	
} Main public static void main(String[] args) throws Exception {
		BufferedReader bw = new BufferedReader(new InputStreamReader(System.in));
		String s = bw.readLine();
		int N = Integer.parseInt(s); 
		HashSet<String> set = new HashSet<String>();
		int res = 0;
		for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		}
		System.out.println(res);
		bw.close();
	} main {
		BufferedReader bw = new BufferedReader(new InputStreamReader(System.in));
		String s = bw.readLine();
		int N = Integer.parseInt(s); 
		HashSet<String> set = new HashSet<String>();
		int res = 0;
		for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		}
		System.out.println(res);
		bw.close();
	} BufferedReader bw = new BufferedReader(new InputStreamReader(System.in)); bw new BufferedReader(new InputStreamReader(System.in)) String s = bw.readLine(); s bw.readLine() bw.readLine bw int N = Integer.parseInt(s); N Integer.parseInt(s) Integer.parseInt Integer s HashSet<String> set = new HashSet<String>(); set new HashSet<String>() int res = 0; res 0 for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		} {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		} s = bw.readLine() s bw.readLine() bw.readLine bw if( !set.contains(s)) {
				res++;
				set.add(s);
			} !set.contains(s) set.contains(s) set.contains set s {
				res++;
				set.add(s);
			} res++ res set.add(s) set.add set s System.out.println(res) System.out.println System.out System System.out res bw.close() bw.close bw String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader bw = new BufferedReader(new InputStreamReader(System.in));
		String s = bw.readLine();
		int N = Integer.parseInt(s); 
		HashSet<String> set = new HashSet<String>();
		int res = 0;
		for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		}
		System.out.println(res);
		bw.close();
	}
	 
	
} public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader bw = new BufferedReader(new InputStreamReader(System.in));
		String s = bw.readLine();
		int N = Integer.parseInt(s); 
		HashSet<String> set = new HashSet<String>();
		int res = 0;
		for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		}
		System.out.println(res);
		bw.close();
	}
	 
	
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader bw = new BufferedReader(new InputStreamReader(System.in));
		String s = bw.readLine();
		int N = Integer.parseInt(s); 
		HashSet<String> set = new HashSet<String>();
		int res = 0;
		for(int i=0;i<N;i++) {
			s = bw.readLine();
			if( !set.contains(s)) {
				res++;
				set.add(s);
			}
		}
		System.out.println(res);
		bw.close();
	}
	 
	
}	

