import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int N = s.nextInt();
        HashSet<String>set = new HashSet<>();

        for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        }

        System.out.println(set.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int N = s.nextInt();
        HashSet<String>set = new HashSet<>();

        for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        }

        System.out.println(set.size());
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int N = s.nextInt();
        HashSet<String>set = new HashSet<>();

        for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        }

        System.out.println(set.size());
    } main {
        Scanner s = new Scanner(System.in);

        int N = s.nextInt();
        HashSet<String>set = new HashSet<>();

        for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        }

        System.out.println(set.size());
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s HashSet<String>set = new HashSet<>(); set new HashSet<>() for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String str = s.next();
            set.add(str);
        } {
            String str = s.next();
            set.add(str);
        } String str = s.next(); str s.next() s.next s set.add(str) set.add set str 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 s = new Scanner(System.in);

        int N = s.nextInt();
        HashSet<String>set = new HashSet<>();

        for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        }

        System.out.println(set.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int N = s.nextInt();
        HashSet<String>set = new HashSet<>();

        for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        }

        System.out.println(set.size());
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int N = s.nextInt();
        HashSet<String>set = new HashSet<>();

        for (int i = 0; i < N; i++) {
            String str = s.next();
            set.add(str);
        }

        System.out.println(set.size());
    }
}