import java.util.*;
public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String strs;
		int value = 0;
		int ans = 0;
		Map<String, Integer> map = new HashMap<String, Integer>();

		for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		}

		for (String key : map.keySet()) {
			ans=ans+1;
		}
		System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String strs;
		int value = 0;
		int ans = 0;
		Map<String, Integer> map = new HashMap<String, Integer>();

		for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		}

		for (String key : map.keySet()) {
			ans=ans+1;
		}
		System.out.println(ans);
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String strs;
		int value = 0;
		int ans = 0;
		Map<String, Integer> map = new HashMap<String, Integer>();

		for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		}

		for (String key : map.keySet()) {
			ans=ans+1;
		}
		System.out.println(ans);
    } main {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String strs;
		int value = 0;
		int ans = 0;
		Map<String, Integer> map = new HashMap<String, Integer>();

		for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		}

		for (String key : map.keySet()) {
			ans=ans+1;
		}
		System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String strs; strs int value = 0; value 0 int ans = 0; ans 0 Map<String, Integer> map = new HashMap<String, Integer>(); map new HashMap<String, Integer>() for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		} {
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		} strs = sc.next() strs sc.next() sc.next sc if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			} map.containsKey(strs) map.containsKey map strs {
				value = map.get(strs)+1;
				map.put(strs, value);
			} value = map.get(strs)+1 value map.get(strs)+1 map.get(strs) map.get map strs 1 map.put(strs, value) map.put map strs value {
				map.put(strs, 1);
			} map.put(strs, 1) map.put map strs 1 for (String key : map.keySet()) {
			ans=ans+1;
		} String key map.keySet() map.keySet map {
			ans=ans+1;
		} {
			ans=ans+1;
		} ans=ans+1 ans ans+1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String strs;
		int value = 0;
		int ans = 0;
		Map<String, Integer> map = new HashMap<String, Integer>();

		for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		}

		for (String key : map.keySet()) {
			ans=ans+1;
		}
		System.out.println(ans);
    }
} public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String strs;
		int value = 0;
		int ans = 0;
		Map<String, Integer> map = new HashMap<String, Integer>();

		for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		}

		for (String key : map.keySet()) {
			ans=ans+1;
		}
		System.out.println(ans);
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String strs;
		int value = 0;
		int ans = 0;
		Map<String, Integer> map = new HashMap<String, Integer>();

		for(int i=1;i<=N;i++){
			strs = sc.next();	
			if (map.containsKey(strs)){
				value = map.get(strs)+1;
				map.put(strs, value);
			}
			else{
				map.put(strs, 1);
			}

		}

		for (String key : map.keySet()) {
			ans=ans+1;
		}
		System.out.println(ans);
    }
}