import java.util.*;
class Main{
	public static void main(String args[]){
    	Scanner sc=new Scanner(System.in);
      	int n=sc.nextInt();
      	HashMap<String,Integer> hm=new HashMap<>();
      	while(n--!=0){
        String str=sc.next();
          if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          }
        }
      System.out.println(hm.size());
    }
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
    	Scanner sc=new Scanner(System.in);
      	int n=sc.nextInt();
      	HashMap<String,Integer> hm=new HashMap<>();
      	while(n--!=0){
        String str=sc.next();
          if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          }
        }
      System.out.println(hm.size());
    }
} Main public static void main(String args[]){
    	Scanner sc=new Scanner(System.in);
      	int n=sc.nextInt();
      	HashMap<String,Integer> hm=new HashMap<>();
      	while(n--!=0){
        String str=sc.next();
          if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          }
        }
      System.out.println(hm.size());
    } main {
    	Scanner sc=new Scanner(System.in);
      	int n=sc.nextInt();
      	HashMap<String,Integer> hm=new HashMap<>();
      	while(n--!=0){
        String str=sc.next();
          if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          }
        }
      System.out.println(hm.size());
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc HashMap<String,Integer> hm=new HashMap<>(); hm new HashMap<>() while(n--!=0){
        String str=sc.next();
          if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          }
        } n--!=0 n-- n 0 {
        String str=sc.next();
          if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          }
        } String str=sc.next(); str sc.next() sc.next sc if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          } hm.containsKey(str) hm.containsKey hm str {
          	
          } {
          	hm.put(str,1);
          } hm.put(str,1) hm.put hm str 1 System.out.println(hm.size()) System.out.println System.out System System.out hm.size() hm.size hm String args[] args
import java.util.*;
class Main{
	public static void main(String args[]){
    	Scanner sc=new Scanner(System.in);
      	int n=sc.nextInt();
      	HashMap<String,Integer> hm=new HashMap<>();
      	while(n--!=0){
        String str=sc.next();
          if(hm.containsKey(str)){
          	
          }else{
          	hm.put(str,1);
          }
        }
      System.out.println(hm.size());
    }
}
