import java.io.*;
import java.util.*;
public class Main
{
  public static void main(String args[])throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(br.readLine());
    int n = Integer.parseInt(st.nextToken());
   String arr[] = new String[n];
   for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   }
   Arrays.sort(arr);
   int c=0;
   HashMap <String, Integer> map= new HashMap<>();
   for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   }
   System.out.println(c);
}
} import java.io.*; io.* java import java.util.*; util.* java public class Main
{
  public static void main(String args[])throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(br.readLine());
    int n = Integer.parseInt(st.nextToken());
   String arr[] = new String[n];
   for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   }
   Arrays.sort(arr);
   int c=0;
   HashMap <String, Integer> map= new HashMap<>();
   for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   }
   System.out.println(c);
}
} Main public static void main(String args[])throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(br.readLine());
    int n = Integer.parseInt(st.nextToken());
   String arr[] = new String[n];
   for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   }
   Arrays.sort(arr);
   int c=0;
   HashMap <String, Integer> map= new HashMap<>();
   for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   }
   System.out.println(c);
} main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(br.readLine());
    int n = Integer.parseInt(st.nextToken());
   String arr[] = new String[n];
   for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   }
   Arrays.sort(arr);
   int c=0;
   HashMap <String, Integer> map= new HashMap<>();
   for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   }
   System.out.println(c);
} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int n = Integer.parseInt(st.nextToken()); n Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st String arr[] = new String[n]; arr new String[n] n for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   } int i=0; int i=0; i 0 i<n i n i++ i++ i {
   		
   		arr[i]=br.readLine();
   } {
   		
   		arr[i]=br.readLine();
   } arr[i]=br.readLine() arr[i] arr i br.readLine() br.readLine br Arrays.sort(arr) Arrays.sort Arrays arr int c=0; c 0 HashMap <String, Integer> map= new HashMap<>(); map new HashMap<>() for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   } int i=0; int i=0; i 0 i<n i n i++ i++ i {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   } {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   } if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		} !map.containsKey(arr[i]) map.containsKey(arr[i]) map.containsKey map arr[i] arr i {
   			c++;
   			map.put(arr[i],1); 
   		} c++ c map.put(arr[i],1) map.put map arr[i] arr i 1 System.out.println(c) System.out.println System.out System System.out c String args[] args public class Main
{
  public static void main(String args[])throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(br.readLine());
    int n = Integer.parseInt(st.nextToken());
   String arr[] = new String[n];
   for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   }
   Arrays.sort(arr);
   int c=0;
   HashMap <String, Integer> map= new HashMap<>();
   for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   }
   System.out.println(c);
}
} public class Main
{
  public static void main(String args[])throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(br.readLine());
    int n = Integer.parseInt(st.nextToken());
   String arr[] = new String[n];
   for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   }
   Arrays.sort(arr);
   int c=0;
   HashMap <String, Integer> map= new HashMap<>();
   for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   }
   System.out.println(c);
}
} Main
import java.io.*;
import java.util.*;
public class Main
{
  public static void main(String args[])throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(br.readLine());
    int n = Integer.parseInt(st.nextToken());
   String arr[] = new String[n];
   for(int i=0;i<n;i++)
   {
   		
   		arr[i]=br.readLine();
   }
   Arrays.sort(arr);
   int c=0;
   HashMap <String, Integer> map= new HashMap<>();
   for(int i=0;i<n;i++)
   {
   		if(!map.containsKey(arr[i])){
   			c++;
   			map.put(arr[i],1); 
   		}
   }
   System.out.println(c);
}
}