import java.util.*;
class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    HashMap<String, Integer> hashmap = new HashMap<String, Integer>();
    for(int i = 0; i < n; i++){
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    }
    System.out.println(hashmap.size());
    sc.close();
  }
} 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> hashmap = new HashMap<String, Integer>();
    for(int i = 0; i < n; i++){
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    }
    System.out.println(hashmap.size());
    sc.close();
  }
} Main public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    HashMap<String, Integer> hashmap = new HashMap<String, Integer>();
    for(int i = 0; i < n; i++){
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    }
    System.out.println(hashmap.size());
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    HashMap<String, Integer> hashmap = new HashMap<String, Integer>();
    for(int i = 0; i < n; i++){
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    }
    System.out.println(hashmap.size());
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc HashMap<String, Integer> hashmap = new HashMap<String, Integer>(); hashmap new HashMap<String, Integer>() for(int i = 0; i < n; i++){
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    } {
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    } String check = sc.next(); check sc.next() sc.next sc if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      } !hashmap.containsKey(check) hashmap.containsKey(check) hashmap.containsKey hashmap check {
        hashmap.put(check, 0);
      } hashmap.put(check, 0) hashmap.put hashmap check 0 System.out.println(hashmap.size()) System.out.println System.out System System.out hashmap.size() hashmap.size hashmap sc.close() sc.close sc 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> hashmap = new HashMap<String, Integer>();
    for(int i = 0; i < n; i++){
      String check = sc.next();
      if(!hashmap.containsKey(check)){
        hashmap.put(check, 0);
      }
    }
    System.out.println(hashmap.size());
    sc.close();
  }
}