import java.util.HashMap;
import java.util.Scanner;

/*
問題文

*/

public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] s = new String[n];

        HashMap<String, Integer> list = new HashMap<>();
        for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        }
        System.out.println(list.size());
    }
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] s = new String[n];

        HashMap<String, Integer> list = new HashMap<>();
        for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        }
        System.out.println(list.size());
    }
} Main public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] s = new String[n];

        HashMap<String, Integer> list = new HashMap<>();
        for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        }
        System.out.println(list.size());
    } main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] s = new String[n];

        HashMap<String, Integer> list = new HashMap<>();
        for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        }
        System.out.println(list.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] s = new String[n]; s new String[n] n HashMap<String, Integer> list = new HashMap<>(); list new HashMap<>() for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        } {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        } s[i] = sc.next() s[i] s i sc.next() sc.next sc if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            } list.containsKey(s[i]) list.containsKey list s[i] s i {
                list.put(s[i], list.get(s[i]) + 1);
            } list.put(s[i], list.get(s[i]) + 1) list.put list s[i] s i list.get(s[i]) + 1 list.get(s[i]) list.get list s[i] s i 1 {
                list.put(s[i], 0);
            } list.put(s[i], 0) list.put list s[i] s i 0 System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list String[] args args public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] s = new String[n];

        HashMap<String, Integer> list = new HashMap<>();
        for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        }
        System.out.println(list.size());
    }
} public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] s = new String[n];

        HashMap<String, Integer> list = new HashMap<>();
        for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        }
        System.out.println(list.size());
    }
} Main
import java.util.HashMap;
import java.util.Scanner;

/*
問題文

*/

public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] s = new String[n];

        HashMap<String, Integer> list = new HashMap<>();
        for (int i = 0; i < n; i++) {
            s[i] = sc.next();
            if (list.containsKey(s[i])) {
                list.put(s[i], list.get(s[i]) + 1);
            } else {
                list.put(s[i], 0);
            }
        }
        System.out.println(list.size());
    }
}