	
	import 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<>();
			while(n-->0) set.add(sc.next());
			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);
	        int n = sc.nextInt();
	        Set<String> set = new HashSet<>();
			while(n-->0) set.add(sc.next());
			System.out.println(set.size());
	}
} Main public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        Set<String> set = new HashSet<>();
			while(n-->0) set.add(sc.next());
			System.out.println(set.size());
	} main {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        Set<String> set = new HashSet<>();
			while(n-->0) set.add(sc.next());
			System.out.println(set.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<>(); set new HashSet<>() while(n-->0) set.add(sc.next()); n-->0 n-- n 0 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) {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        Set<String> set = new HashSet<>();
			while(n-->0) set.add(sc.next());
			System.out.println(set.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<>();
			while(n-->0) set.add(sc.next());
			System.out.println(set.size());
	}
} Main
	
	import 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<>();
			while(n-->0) set.add(sc.next());
			System.out.println(set.size());
	}
}
	