import java.util.*;
class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    HashSet<String> set=new HashSet<>();
    while(a>0)
    {
     String s=in.next();
     set.add(s);
      
      
      a--;
    }
    System.out.print(set.size());
    
  }
} import java.util.*; util.* java class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    HashSet<String> set=new HashSet<>();
    while(a>0)
    {
     String s=in.next();
     set.add(s);
      
      
      a--;
    }
    System.out.print(set.size());
    
  }
} Main public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    HashSet<String> set=new HashSet<>();
    while(a>0)
    {
     String s=in.next();
     set.add(s);
      
      
      a--;
    }
    System.out.print(set.size());
    
  } main {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    HashSet<String> set=new HashSet<>();
    while(a>0)
    {
     String s=in.next();
     set.add(s);
      
      
      a--;
    }
    System.out.print(set.size());
    
  } Scanner in=new Scanner(System.in); in new Scanner(System.in) int a=in.nextInt(); a in.nextInt() in.nextInt in HashSet<String> set=new HashSet<>(); set new HashSet<>() while(a>0)
    {
     String s=in.next();
     set.add(s);
      
      
      a--;
    } a>0 a 0 {
     String s=in.next();
     set.add(s);
      
      
      a--;
    } String s=in.next(); s in.next() in.next in set.add(s) set.add set s a-- a System.out.print(set.size()) System.out.print System.out System System.out set.size() set.size set String args[] args
import java.util.*;
class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    HashSet<String> set=new HashSet<>();
    while(a>0)
    {
     String s=in.next();
     set.add(s);
      
      
      a--;
    }
    System.out.print(set.size());
    
  }
}