import java.util.*;

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        Set<String> set = new HashSet<String>();
        for (long l = 0; l < n; l++) {
            set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    }
}
