/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.*;

/**
 *
 * @author Admin
 */
class Main {
    
    
    public static void main(String args[])
    {
    Scanner s=new Scanner(System.in);
    
    int a=s.nextInt();
    
   TreeSet<String> set=new TreeSet<>();
    
    while(a-->0)
    {
    String str=s.next();
    
    set.add(str);
    }
    System.out.println(set.size());
    
    
    }
    
    
} import java.util.*; util.* java class Main {
    
    
    public static void main(String args[])
    {
    Scanner s=new Scanner(System.in);
    
    int a=s.nextInt();
    
   TreeSet<String> set=new TreeSet<>();
    
    while(a-->0)
    {
    String str=s.next();
    
    set.add(str);
    }
    System.out.println(set.size());
    
    
    }
    
    
} Main public static void main(String args[])
    {
    Scanner s=new Scanner(System.in);
    
    int a=s.nextInt();
    
   TreeSet<String> set=new TreeSet<>();
    
    while(a-->0)
    {
    String str=s.next();
    
    set.add(str);
    }
    System.out.println(set.size());
    
    
    } main {
    Scanner s=new Scanner(System.in);
    
    int a=s.nextInt();
    
   TreeSet<String> set=new TreeSet<>();
    
    while(a-->0)
    {
    String str=s.next();
    
    set.add(str);
    }
    System.out.println(set.size());
    
    
    } Scanner s=new Scanner(System.in); s new Scanner(System.in) int a=s.nextInt(); a s.nextInt() s.nextInt s TreeSet<String> set=new TreeSet<>(); set new TreeSet<>() while(a-->0)
    {
    String str=s.next();
    
    set.add(str);
    } a-->0 a-- a 0 {
    String str=s.next();
    
    set.add(str);
    } String str=s.next(); str s.next() s.next s set.add(str) set.add set str System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String args[] args
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.*;

/**
 *
 * @author Admin
 */
class Main {
    
    
    public static void main(String args[])
    {
    Scanner s=new Scanner(System.in);
    
    int a=s.nextInt();
    
   TreeSet<String> set=new TreeSet<>();
    
    while(a-->0)
    {
    String str=s.next();
    
    set.add(str);
    }
    System.out.println(set.size());
    
    
    }
    
    
}
