import java.util.*;

public class Main {
    public static void main(String[] args ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        Set<String> kh = new HashSet<String>();
        while(sc.hasNext()){
            kh.add(sc.next());
        }
        System.out.println(kh.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 = sc.nextInt();

        Set<String> kh = new HashSet<String>();
        while(sc.hasNext()){
            kh.add(sc.next());
        }
        System.out.println(kh.size());
    }
} Main public static void main(String[] args ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        Set<String> kh = new HashSet<String>();
        while(sc.hasNext()){
            kh.add(sc.next());
        }
        System.out.println(kh.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        Set<String> kh = new HashSet<String>();
        while(sc.hasNext()){
            kh.add(sc.next());
        }
        System.out.println(kh.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Set<String> kh = new HashSet<String>(); kh new HashSet<String>() while(sc.hasNext()){
            kh.add(sc.next());
        } sc.hasNext() sc.hasNext sc {
            kh.add(sc.next());
        } kh.add(sc.next()) kh.add kh sc.next() sc.next sc System.out.println(kh.size()) System.out.println System.out System System.out kh.size() kh.size kh String[] args args public class Main {
    public static void main(String[] args ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        Set<String> kh = new HashSet<String>();
        while(sc.hasNext()){
            kh.add(sc.next());
        }
        System.out.println(kh.size());
    }
} public class Main {
    public static void main(String[] args ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        Set<String> kh = new HashSet<String>();
        while(sc.hasNext()){
            kh.add(sc.next());
        }
        System.out.println(kh.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        Set<String> kh = new HashSet<String>();
        while(sc.hasNext()){
            kh.add(sc.next());
        }
        System.out.println(kh.size());
    }
}