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

public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		ArrayList<String> list = new ArrayList<String>();
		Map<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		}
		System.out.println(map.keySet().size());
	}
} import java.util.ArrayList; ArrayList java.util 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[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		ArrayList<String> list = new ArrayList<String>();
		Map<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		}
		System.out.println(map.keySet().size());
	}
} Main public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		ArrayList<String> list = new ArrayList<String>();
		Map<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		}
		System.out.println(map.keySet().size());
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		ArrayList<String> list = new ArrayList<String>();
		Map<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		}
		System.out.println(map.keySet().size());
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() Map<String, Integer> map = new HashMap<String, Integer>(); map new HashMap<String, Integer>() for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		} {
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		} String s = scan.next(); s scan.next() scan.next scan if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			} map.containsKey(s) map.containsKey map s {
				int v = map.get(s);
				map.put(s, v+1);
			} int v = map.get(s); v map.get(s) map.get map s map.put(s, v+1) map.put map s v+1 v 1 {
				map.put(s, 1);
			} map.put(s, 1) map.put map s 1 System.out.println(map.keySet().size()) System.out.println System.out System System.out map.keySet().size() map.keySet().size map.keySet() map.keySet map String[] arg arg public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		ArrayList<String> list = new ArrayList<String>();
		Map<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		}
		System.out.println(map.keySet().size());
	}
} public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		ArrayList<String> list = new ArrayList<String>();
		Map<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		}
		System.out.println(map.keySet().size());
	}
} Main
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		ArrayList<String> list = new ArrayList<String>();
		Map<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < n; i++){
			String s = scan.next();
			if(map.containsKey(s)){
				int v = map.get(s);
				map.put(s, v+1);
			} else {
				map.put(s, 1);
			}

		}
		System.out.println(map.keySet().size());
	}
}
