import java.util.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;

public class Main { 
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = Integer.parseInt(sc.next());
      List<String> list = new ArrayList<String>();
      for(int i = 0; i < N; i++){
        list.add(sc.next());
      }
      List<String> L = new ArrayList<String>(new HashSet<>(list));
      System.out.println(L.size());
    }
} import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util public class Main { 
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = Integer.parseInt(sc.next());
      List<String> list = new ArrayList<String>();
      for(int i = 0; i < N; i++){
        list.add(sc.next());
      }
      List<String> L = new ArrayList<String>(new HashSet<>(list));
      System.out.println(L.size());
    }
} Main public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = Integer.parseInt(sc.next());
      List<String> list = new ArrayList<String>();
      for(int i = 0; i < N; i++){
        list.add(sc.next());
      }
      List<String> L = new ArrayList<String>(new HashSet<>(list));
      System.out.println(L.size());
    } main {
      Scanner sc = new Scanner(System.in);
      int N = Integer.parseInt(sc.next());
      List<String> list = new ArrayList<String>();
      for(int i = 0; i < N; i++){
        list.add(sc.next());
      }
      List<String> L = new ArrayList<String>(new HashSet<>(list));
      System.out.println(L.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 List<String> list = new ArrayList<String>(); list new ArrayList<String>() for(int i = 0; i < N; i++){
        list.add(sc.next());
      } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        list.add(sc.next());
      } {
        list.add(sc.next());
      } list.add(sc.next()) list.add list sc.next() sc.next sc List<String> L = new ArrayList<String>(new HashSet<>(list)); L new ArrayList<String>(new HashSet<>(list)) System.out.println(L.size()) System.out.println System.out System System.out L.size() L.size L String[] args args public class Main { 
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = Integer.parseInt(sc.next());
      List<String> list = new ArrayList<String>();
      for(int i = 0; i < N; i++){
        list.add(sc.next());
      }
      List<String> L = new ArrayList<String>(new HashSet<>(list));
      System.out.println(L.size());
    }
} public class Main { 
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = Integer.parseInt(sc.next());
      List<String> list = new ArrayList<String>();
      for(int i = 0; i < N; i++){
        list.add(sc.next());
      }
      List<String> L = new ArrayList<String>(new HashSet<>(list));
      System.out.println(L.size());
    }
} Main
import java.util.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;

public class Main { 
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = Integer.parseInt(sc.next());
      List<String> list = new ArrayList<String>();
      for(int i = 0; i < N; i++){
        list.add(sc.next());
      }
      List<String> L = new ArrayList<String>(new HashSet<>(list));
      System.out.println(L.size());
    }
}
