import java.util.*;

public class Main {
    public static void main(String[] args) {
        Long n;
        HashSet<String> sName = new HashSet<String>();  
        Scanner sc = new Scanner(System.in);
        n = sc.nextLong();
        for(int i = 0; i < n; i++){
            sName.add(sc.next());
        }
        System.out.println(sName.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Long n;
        HashSet<String> sName = new HashSet<String>();  
        Scanner sc = new Scanner(System.in);
        n = sc.nextLong();
        for(int i = 0; i < n; i++){
            sName.add(sc.next());
        }
        System.out.println(sName.size());
    }
} Main public static void main(String[] args) {
        Long n;
        HashSet<String> sName = new HashSet<String>();  
        Scanner sc = new Scanner(System.in);
        n = sc.nextLong();
        for(int i = 0; i < n; i++){
            sName.add(sc.next());
        }
        System.out.println(sName.size());
    } main {
        Long n;
        HashSet<String> sName = new HashSet<String>();  
        Scanner sc = new Scanner(System.in);
        n = sc.nextLong();
        for(int i = 0; i < n; i++){
            sName.add(sc.next());
        }
        System.out.println(sName.size());
    } Long n; n HashSet<String> sName = new HashSet<String>(); sName new HashSet<String>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextLong() n sc.nextLong() sc.nextLong sc for(int i = 0; i < n; i++){
            sName.add(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            sName.add(sc.next());
        } {
            sName.add(sc.next());
        } sName.add(sc.next()) sName.add sName sc.next() sc.next sc System.out.println(sName.size()) System.out.println System.out System System.out sName.size() sName.size sName String[] args args public class Main {
    public static void main(String[] args) {
        Long n;
        HashSet<String> sName = new HashSet<String>();  
        Scanner sc = new Scanner(System.in);
        n = sc.nextLong();
        for(int i = 0; i < n; i++){
            sName.add(sc.next());
        }
        System.out.println(sName.size());
    }
} public class Main {
    public static void main(String[] args) {
        Long n;
        HashSet<String> sName = new HashSet<String>();  
        Scanner sc = new Scanner(System.in);
        n = sc.nextLong();
        for(int i = 0; i < n; i++){
            sName.add(sc.next());
        }
        System.out.println(sName.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Long n;
        HashSet<String> sName = new HashSet<String>();  
        Scanner sc = new Scanner(System.in);
        n = sc.nextLong();
        for(int i = 0; i < n; i++){
            sName.add(sc.next());
        }
        System.out.println(sName.size());
    }
}