import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	public static void main (String args[]) throws Exception{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int ans = 0;
		Map<String,String> map = new HashMap<String, String>();
		for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		}

		System.out.println(ans);
	}
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main (String args[]) throws Exception{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int ans = 0;
		Map<String,String> map = new HashMap<String, String>();
		for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		}

		System.out.println(ans);
	}
} Main public static void main (String args[]) throws Exception{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int ans = 0;
		Map<String,String> map = new HashMap<String, String>();
		for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		}

		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int ans = 0;
		Map<String,String> map = new HashMap<String, String>();
		for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		}

		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int ans = 0; ans 0 Map<String,String> map = new HashMap<String, String>(); map new HashMap<String, String>() for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		} {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		} String  s = scan.next(); s scan.next() scan.next scan if(map.get(s) == null) {
				ans++;
			} map.get(s) == null map.get(s) map.get map s null {
				ans++;
			} ans++ ans map.put(s, "") map.put map s "" 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[]) throws Exception{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int ans = 0;
		Map<String,String> map = new HashMap<String, String>();
		for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		}

		System.out.println(ans);
	}
} public class Main {
	public static void main (String args[]) throws Exception{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int ans = 0;
		Map<String,String> map = new HashMap<String, String>();
		for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		}

		System.out.println(ans);
	}
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	public static void main (String args[]) throws Exception{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int ans = 0;
		Map<String,String> map = new HashMap<String, String>();
		for(int i = 0;i < n; i++) {
			String  s = scan.next();
			if(map.get(s) == null) {
				ans++;
			}
			map.put(s, "");
		}

		System.out.println(ans);
	}
}