import java.util.*;
public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
			
		Map<String, Integer> map = new HashMap<>();
		for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		}
		System.out.println(map.size());
		
		
      	sc.close();
    }
		
		
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
			
		Map<String, Integer> map = new HashMap<>();
		for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		}
		System.out.println(map.size());
		
		
      	sc.close();
    }
		
		
} Main public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
			
		Map<String, Integer> map = new HashMap<>();
		for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		}
		System.out.println(map.size());
		
		
      	sc.close();
    } main {
      	
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
			
		Map<String, Integer> map = new HashMap<>();
		for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		}
		System.out.println(map.size());
		
		
      	sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc Map<String, Integer> map = new HashMap<>(); map new HashMap<>() for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		} {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		} String S = sc.next(); S sc.next() sc.next sc if(!map.containsKey(S)){
				map.put(S, 1);
			} !map.containsKey(S) map.containsKey(S) map.containsKey map S {
				map.put(S, 1);
			} map.put(S, 1) map.put map S 1 System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
			
		Map<String, Integer> map = new HashMap<>();
		for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		}
		System.out.println(map.size());
		
		
      	sc.close();
    }
		
		
} public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
			
		Map<String, Integer> map = new HashMap<>();
		for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		}
		System.out.println(map.size());
		
		
      	sc.close();
    }
		
		
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
			
		Map<String, Integer> map = new HashMap<>();
		for (int i = 0; i < N; i++) {
			String S = sc.next();
			if(!map.containsKey(S)){
				map.put(S, 1);
			}
		}
		System.out.println(map.size());
		
		
      	sc.close();
    }
		
		
}
