import java.util.*;

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

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        List<String> list = new ArrayList<String>();
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = sc.next();
            list.add(str[i]);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(list));

        System.out.println(listB.size());
        sc.close();
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        List<String> list = new ArrayList<String>();
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = sc.next();
            list.add(str[i]);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(list));

        System.out.println(listB.size());
        sc.close();
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        List<String> list = new ArrayList<String>();
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = sc.next();
            list.add(str[i]);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(list));

        System.out.println(listB.size());
        sc.close();
    } main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        List<String> list = new ArrayList<String>();
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = sc.next();
            list.add(str[i]);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(list));

        System.out.println(listB.size());
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<String> list = new ArrayList<String>(); list new ArrayList<String>() String[] str = new String[n]; str new String[n] n for (int i = 0; i < n; i++) {
            str[i] = sc.next();
            list.add(str[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            str[i] = sc.next();
            list.add(str[i]);
        } {
            str[i] = sc.next();
            list.add(str[i]);
        } str[i] = sc.next() str[i] str i sc.next() sc.next sc list.add(str[i]) list.add list str[i] str i List<String> listB = new ArrayList<String>(new HashSet<>(list)); listB new ArrayList<String>(new HashSet<>(list)) System.out.println(listB.size()) System.out.println System.out System System.out listB.size() listB.size listB sc.close() sc.close sc String[] args args
import java.util.*;

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

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        List<String> list = new ArrayList<String>();
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = sc.next();
            list.add(str[i]);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(list));

        System.out.println(listB.size());
        sc.close();
    }
}
