import java.util.*;
public class Main
{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	 int t = sc.nextInt();
	 int count=0;
	  Set<String> set = new HashSet<String>();
	 while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
}
 for(String stock : set){
   count++;
}
System.out.println(count);
	 
	}
} import java.util.*; util.* java public class Main
{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	 int t = sc.nextInt();
	 int count=0;
	  Set<String> set = new HashSet<String>();
	 while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
}
 for(String stock : set){
   count++;
}
System.out.println(count);
	 
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	 int t = sc.nextInt();
	 int count=0;
	  Set<String> set = new HashSet<String>();
	 while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
}
 for(String stock : set){
   count++;
}
System.out.println(count);
	 
	} main {
		Scanner sc = new Scanner(System.in);
	 int t = sc.nextInt();
	 int count=0;
	  Set<String> set = new HashSet<String>();
	 while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
}
 for(String stock : set){
   count++;
}
System.out.println(count);
	 
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int count=0; count 0 Set<String> set = new HashSet<String>(); set new HashSet<String>() while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
} t-->0 t-- t 0 {
	     String str= sc.next();
	    
	     set.add(str);
	 
} String str= sc.next(); str sc.next() sc.next sc set.add(str) set.add set str for(String stock : set){
   count++;
} String stock set {
   count++;
} {
   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 sc = new Scanner(System.in);
	 int t = sc.nextInt();
	 int count=0;
	  Set<String> set = new HashSet<String>();
	 while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
}
 for(String stock : set){
   count++;
}
System.out.println(count);
	 
	}
} public class Main
{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	 int t = sc.nextInt();
	 int count=0;
	  Set<String> set = new HashSet<String>();
	 while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
}
 for(String stock : set){
   count++;
}
System.out.println(count);
	 
	}
} Main
import java.util.*;
public class Main
{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	 int t = sc.nextInt();
	 int count=0;
	  Set<String> set = new HashSet<String>();
	 while(t-->0){
	     String str= sc.next();
	    
	     set.add(str);
	 
}
 for(String stock : set){
   count++;
}
System.out.println(count);
	 
	}
}