import java.util.*;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.next());
      
      //重複はSetでいい
      Set<String> numSet = new HashSet<>();
      for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      }
 
      System.out.println(numSet.size());
    }
} import java.util.*; util.* java public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.next());
      
      //重複はSetでいい
      Set<String> numSet = new HashSet<>();
      for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      }
 
      System.out.println(numSet.size());
    }
} Main public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.next());
      
      //重複はSetでいい
      Set<String> numSet = new HashSet<>();
      for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      }
 
      System.out.println(numSet.size());
    } main {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.next());
      
      //重複はSetでいい
      Set<String> numSet = new HashSet<>();
      for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      }
 
      System.out.println(numSet.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Set<String> numSet = new HashSet<>(); numSet new HashSet<>() for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
          String di = sc.next();
          numSet.add(di);
      } {
          String di = sc.next();
          numSet.add(di);
      } String di = sc.next(); di sc.next() sc.next sc numSet.add(di) numSet.add numSet di System.out.println(numSet.size()) System.out.println System.out System System.out numSet.size() numSet.size numSet String[] args args public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.next());
      
      //重複はSetでいい
      Set<String> numSet = new HashSet<>();
      for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      }
 
      System.out.println(numSet.size());
    }
} public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.next());
      
      //重複はSetでいい
      Set<String> numSet = new HashSet<>();
      for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      }
 
      System.out.println(numSet.size());
    }
} Main
import java.util.*;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.next());
      
      //重複はSetでいい
      Set<String> numSet = new HashSet<>();
      for (int i=0; i<n; i++) {
          String di = sc.next();
          numSet.add(di);
      }
 
      System.out.println(numSet.size());
    }
}