import java.util.*;
public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int kind = 0;
      Map<String, Integer> priseMap = new HashMap<>();

      // ガチャ
      for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      }

      // 出力
      System.out.println(kind);
    }
    
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int kind = 0;
      Map<String, Integer> priseMap = new HashMap<>();

      // ガチャ
      for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      }

      // 出力
      System.out.println(kind);
    }
    
} Main public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int kind = 0;
      Map<String, Integer> priseMap = new HashMap<>();

      // ガチャ
      for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      }

      // 出力
      System.out.println(kind);
    } main {
      // 入力
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int kind = 0;
      Map<String, Integer> priseMap = new HashMap<>();

      // ガチャ
      for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      }

      // 出力
      System.out.println(kind);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int kind = 0; kind 0 Map<String, Integer> priseMap = new HashMap<>(); priseMap new HashMap<>() for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      } {
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      } String prise = sc.next(); prise sc.next() sc.next sc if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        } !priseMap.containsKey(prise) priseMap.containsKey(prise) priseMap.containsKey priseMap prise {
          priseMap.put(prise, 0);
          kind++;
        } priseMap.put(prise, 0) priseMap.put priseMap prise 0 kind++ kind System.out.println(kind) System.out.println System.out System System.out kind String[] args args public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int kind = 0;
      Map<String, Integer> priseMap = new HashMap<>();

      // ガチャ
      for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      }

      // 出力
      System.out.println(kind);
    }
    
} public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int kind = 0;
      Map<String, Integer> priseMap = new HashMap<>();

      // ガチャ
      for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      }

      // 出力
      System.out.println(kind);
    }
    
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int kind = 0;
      Map<String, Integer> priseMap = new HashMap<>();

      // ガチャ
      for(int i = 0; i < N; i++){
        String prise = sc.next();
        if(!priseMap.containsKey(prise)){
          priseMap.put(prise, 0);
          kind++;
        }
      }

      // 出力
      System.out.println(kind);
    }
    
}