import java.io.*;
import java.util.*;
import java.util.Collection;
class Main
{
  public static void main(String args[])  throws java.lang.Exception
  {
    BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
    int n=Integer.parseInt(br.readLine());
    HashSet<String> hs=new HashSet<String>();
    for(int i=0;i<n;i++)
     {
       String s=br.readLine();
       hs.add(s);
     } 
    System.out.println(hs.size());
   
   }
}   import java.io.*; io.* java import java.util.*; util.* java import java.util.Collection; Collection java.util class Main
{
  public static void main(String args[])  throws java.lang.Exception
  {
    BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
    int n=Integer.parseInt(br.readLine());
    HashSet<String> hs=new HashSet<String>();
    for(int i=0;i<n;i++)
     {
       String s=br.readLine();
       hs.add(s);
     } 
    System.out.println(hs.size());
   
   }
} Main public static void main(String args[])  throws java.lang.Exception
  {
    BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
    int n=Integer.parseInt(br.readLine());
    HashSet<String> hs=new HashSet<String>();
    for(int i=0;i<n;i++)
     {
       String s=br.readLine();
       hs.add(s);
     } 
    System.out.println(hs.size());
   
   } main {
    BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
    int n=Integer.parseInt(br.readLine());
    HashSet<String> hs=new HashSet<String>();
    for(int i=0;i<n;i++)
     {
       String s=br.readLine();
       hs.add(s);
     } 
    System.out.println(hs.size());
   
   } BufferedReader br= new BufferedReader (new InputStreamReader(System.in)); br new BufferedReader (new InputStreamReader(System.in)) int n=Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br HashSet<String> hs=new HashSet<String>(); hs new HashSet<String>() for(int i=0;i<n;i++)
     {
       String s=br.readLine();
       hs.add(s);
     } int i=0; int i=0; i 0 i<n i n i++ i++ i {
       String s=br.readLine();
       hs.add(s);
     } {
       String s=br.readLine();
       hs.add(s);
     } String s=br.readLine(); s br.readLine() br.readLine br hs.add(s) hs.add hs s System.out.println(hs.size()) System.out.println System.out System System.out hs.size() hs.size hs String args[] args
import java.io.*;
import java.util.*;
import java.util.Collection;
class Main
{
  public static void main(String args[])  throws java.lang.Exception
  {
    BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
    int n=Integer.parseInt(br.readLine());
    HashSet<String> hs=new HashSet<String>();
    for(int i=0;i<n;i++)
     {
       String s=br.readLine();
       hs.add(s);
     } 
    System.out.println(hs.size());
   
   }
}  
