import java.util.*;
class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        HashMap<String,String> map = new HashMap<>();
        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        }
        System.out.println(map.size());

    }
} import java.util.*; util.* java class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        HashMap<String,String> map = new HashMap<>();
        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        }
        System.out.println(map.size());

    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        HashMap<String,String> map = new HashMap<>();
        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        }
        System.out.println(map.size());

    } main {
        Scanner sc = new Scanner(System.in);
        HashMap<String,String> map = new HashMap<>();
        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        }
        System.out.println(map.size());

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) HashMap<String,String> map = new HashMap<>(); map new HashMap<>() int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        } {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        } String k = sc.next(); k sc.next() sc.next sc if(!map.containsKey(k)){
                map.put(k, "a");
            } !map.containsKey(k) map.containsKey(k) map.containsKey map k {
                map.put(k, "a");
            } map.put(k, "a") map.put map k "a" System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String args[] args
import java.util.*;
class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        HashMap<String,String> map = new HashMap<>();
        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String k = sc.next();
            if(!map.containsKey(k)){
                map.put(k, "a");
            }
            
        }
        System.out.println(map.size());

    }
}