import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Set<String> set = new HashSet<>();
        for (int i=0; i<num; i++) {
            set.add(sc.next());
        }

        System.out.println(set.size());
    }
} import java.io.File; File java.io import java.io.FileInputStream; FileInputStream java.io import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Set<String> set = new HashSet<>();
        for (int i=0; i<num; i++) {
            set.add(sc.next());
        }

        System.out.println(set.size());
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Set<String> set = new HashSet<>();
        for (int i=0; i<num; i++) {
            set.add(sc.next());
        }

        System.out.println(set.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Set<String> set = new HashSet<>();
        for (int i=0; i<num; i++) {
            set.add(sc.next());
        }

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

        System.out.println(set.size());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Set<String> set = new HashSet<>();
        for (int i=0; i<num; i++) {
            set.add(sc.next());
        }

        System.out.println(set.size());
    }
} Main
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        Set<String> set = new HashSet<>();
        for (int i=0; i<num; i++) {
            set.add(sc.next());
        }

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