import java.util.*;
import java.util.ArrayList;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
	       Scanner sc = new Scanner(System.in);
           int N = sc.nextInt();
		////////////入力/////////////////////////////////
		  //Listに入力///////////////////////////////////////
		  ArrayList<String> list = new ArrayList<String>();
		  for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   }
      //System.out.println(list);
      		  //List内の要素の出現回数をカウント//////////////////////////////////////
			Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
      System.out.println(counts.size());
    }
} import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Map; Map java.util import java.util.function.Function; Function java.util.function import java.util.stream.Collectors; Collectors java.util.stream public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
	       Scanner sc = new Scanner(System.in);
           int N = sc.nextInt();
		////////////入力/////////////////////////////////
		  //Listに入力///////////////////////////////////////
		  ArrayList<String> list = new ArrayList<String>();
		  for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   }
      //System.out.println(list);
      		  //List内の要素の出現回数をカウント//////////////////////////////////////
			Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
      System.out.println(counts.size());
    }
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
	       Scanner sc = new Scanner(System.in);
           int N = sc.nextInt();
		////////////入力/////////////////////////////////
		  //Listに入力///////////////////////////////////////
		  ArrayList<String> list = new ArrayList<String>();
		  for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   }
      //System.out.println(list);
      		  //List内の要素の出現回数をカウント//////////////////////////////////////
			Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
      System.out.println(counts.size());
    } main {
		// TODO 自動生成されたメソッド・スタブ
	       Scanner sc = new Scanner(System.in);
           int N = sc.nextInt();
		////////////入力/////////////////////////////////
		  //Listに入力///////////////////////////////////////
		  ArrayList<String> list = new ArrayList<String>();
		  for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   }
      //System.out.println(list);
      		  //List内の要素の出現回数をカウント//////////////////////////////////////
			Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
      System.out.println(counts.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   } int i =0; int i =0; i 0 i<N i N i++ i++ i {
			  String A = sc.next();
			  list.add(A);
		   } {
			  String A = sc.next();
			  list.add(A);
		   } String A = sc.next(); A sc.next() sc.next sc list.add(A) list.add list A Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting())); counts list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting())) list.stream()
				    .collect list.stream() list.stream list Collectors.groupingBy(Function.identity(), Collectors.counting()) Collectors.groupingBy Collectors Function.identity() Function.identity Function Collectors.counting() Collectors.counting Collectors System.out.println(counts.size()) System.out.println System.out System System.out counts.size() counts.size counts String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
	       Scanner sc = new Scanner(System.in);
           int N = sc.nextInt();
		////////////入力/////////////////////////////////
		  //Listに入力///////////////////////////////////////
		  ArrayList<String> list = new ArrayList<String>();
		  for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   }
      //System.out.println(list);
      		  //List内の要素の出現回数をカウント//////////////////////////////////////
			Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
      System.out.println(counts.size());
    }
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
	       Scanner sc = new Scanner(System.in);
           int N = sc.nextInt();
		////////////入力/////////////////////////////////
		  //Listに入力///////////////////////////////////////
		  ArrayList<String> list = new ArrayList<String>();
		  for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   }
      //System.out.println(list);
      		  //List内の要素の出現回数をカウント//////////////////////////////////////
			Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
      System.out.println(counts.size());
    }
} Main
import java.util.*;
import java.util.ArrayList;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
	       Scanner sc = new Scanner(System.in);
           int N = sc.nextInt();
		////////////入力/////////////////////////////////
		  //Listに入力///////////////////////////////////////
		  ArrayList<String> list = new ArrayList<String>();
		  for(int i =0;i<N;i++) {
			  String A = sc.next();
			  list.add(A);
		   }
      //System.out.println(list);
      		  //List内の要素の出現回数をカウント//////////////////////////////////////
			Map<String, Long> counts = list.stream()
				    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
      System.out.println(counts.size());
    }
}