import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n,ans=0;
        
        n = sc.nextInt();
        
        Set<String> set = new HashSet<String>();
        
        for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        }
        
        System.out.println(set.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n,ans=0;
        
        n = sc.nextInt();
        
        Set<String> set = new HashSet<String>();
        
        for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        }
        
        System.out.println(set.size());
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n,ans=0;
        
        n = sc.nextInt();
        
        Set<String> set = new HashSet<String>();
        
        for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        }
        
        System.out.println(set.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int n,ans=0;
        
        n = sc.nextInt();
        
        Set<String> set = new HashSet<String>();
        
        for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        }
        
        System.out.println(set.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n n ans=0; ans 0 n = sc.nextInt() n sc.nextInt() sc.nextInt sc Set<String> set = new HashSet<String>(); set new HashSet<String>() for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        } {
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        } String prize; prize prize = sc.next() prize sc.next() sc.next sc set.add(prize) set.add set prize System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n,ans=0;
        
        n = sc.nextInt();
        
        Set<String> set = new HashSet<String>();
        
        for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        }
        
        System.out.println(set.size());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n,ans=0;
        
        n = sc.nextInt();
        
        Set<String> set = new HashSet<String>();
        
        for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        }
        
        System.out.println(set.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n,ans=0;
        
        n = sc.nextInt();
        
        Set<String> set = new HashSet<String>();
        
        for(int i = 0; i < n; i++){
            
            String prize;
            prize = sc.next();
            
            set.add(prize);
        }
        
        System.out.println(set.size());
    }
}
