import java.util.*;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++) {
            set.add(sc.next());
        }
        List<String> list = new ArrayList<String>(set);
        System.out.println(list.size());
    }
} import java.util.*; util.* java 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();
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++) {
            set.add(sc.next());
        }
        List<String> list = new ArrayList<String>(set);
        System.out.println(list.size());
    }
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++) {
            set.add(sc.next());
        }
        List<String> list = new ArrayList<String>(set);
        System.out.println(list.size());
    } main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++) {
            set.add(sc.next());
        }
        List<String> list = new ArrayList<String>(set);
        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 Set<String> set = new HashSet<String>(); set new HashSet<String>() for(int i=0;i<N;i++) {
            set.add(sc.next());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            set.add(sc.next());
        } {
            set.add(sc.next());
        } set.add(sc.next()) set.add set sc.next() sc.next sc List<String> list = new ArrayList<String>(set); list new ArrayList<String>(set) 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();
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++) {
            set.add(sc.next());
        }
        List<String> list = new ArrayList<String>(set);
        System.out.println(list.size());
    }
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i=0;i<N;i++) {
            set.add(sc.next());
        }
        List<String> list = new ArrayList<String>(set);
        System.out.println(list.size());
    }
} Main
import java.util.*;
import java.util.Scanner;

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