import java.util.*;
public class Main{
  public static void main(String[] args){
  	Scanner scn = new Scanner(System.in);
	    int n = scn.nextInt();
	    scn.nextLine();
	    String []arr = new String[n];
	    Map<String,Integer> map = new HashMap<String,Integer>();
	    for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    }
	    int count = 0;
	    for(String s:map.keySet())
	    	count++;
	    System.out.println(count);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
  	Scanner scn = new Scanner(System.in);
	    int n = scn.nextInt();
	    scn.nextLine();
	    String []arr = new String[n];
	    Map<String,Integer> map = new HashMap<String,Integer>();
	    for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    }
	    int count = 0;
	    for(String s:map.keySet())
	    	count++;
	    System.out.println(count);
  }
} Main public static void main(String[] args){
  	Scanner scn = new Scanner(System.in);
	    int n = scn.nextInt();
	    scn.nextLine();
	    String []arr = new String[n];
	    Map<String,Integer> map = new HashMap<String,Integer>();
	    for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    }
	    int count = 0;
	    for(String s:map.keySet())
	    	count++;
	    System.out.println(count);
  } main {
  	Scanner scn = new Scanner(System.in);
	    int n = scn.nextInt();
	    scn.nextLine();
	    String []arr = new String[n];
	    Map<String,Integer> map = new HashMap<String,Integer>();
	    for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    }
	    int count = 0;
	    for(String s:map.keySet())
	    	count++;
	    System.out.println(count);
  } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn scn.nextLine() scn.nextLine scn String []arr = new String[n]; arr new String[n] n Map<String,Integer> map = new HashMap<String,Integer>(); map new HashMap<String,Integer>() for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    } {
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    } arr[i] = scn.nextLine() arr[i] arr i scn.nextLine() scn.nextLine scn if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1); map.containsKey(arr[i]) map.containsKey map arr[i] arr i map.put(arr[i], map.get(arr[i])+1) map.put map arr[i] arr i map.get(arr[i])+1 map.get(arr[i]) map.get map arr[i] arr i 1 map.put(arr[i],1) map.put map arr[i] arr i 1 int count = 0; count 0 for(String s:map.keySet())
	    	count++; String s map.keySet() map.keySet map count++; count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
  public static void main(String[] args){
  	Scanner scn = new Scanner(System.in);
	    int n = scn.nextInt();
	    scn.nextLine();
	    String []arr = new String[n];
	    Map<String,Integer> map = new HashMap<String,Integer>();
	    for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    }
	    int count = 0;
	    for(String s:map.keySet())
	    	count++;
	    System.out.println(count);
  }
} public class Main{
  public static void main(String[] args){
  	Scanner scn = new Scanner(System.in);
	    int n = scn.nextInt();
	    scn.nextLine();
	    String []arr = new String[n];
	    Map<String,Integer> map = new HashMap<String,Integer>();
	    for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    }
	    int count = 0;
	    for(String s:map.keySet())
	    	count++;
	    System.out.println(count);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
  	Scanner scn = new Scanner(System.in);
	    int n = scn.nextInt();
	    scn.nextLine();
	    String []arr = new String[n];
	    Map<String,Integer> map = new HashMap<String,Integer>();
	    for(int i=0;i<n;i++){
	      arr[i] = scn.nextLine();
	      if(map.containsKey(arr[i]))
	    	  map.put(arr[i], map.get(arr[i])+1);
	      else
	    	  map.put(arr[i],1);
	    }
	    int count = 0;
	    for(String s:map.keySet())
	    	count++;
	    System.out.println(count);
  }
}
