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