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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int ans = 0;
		HashMap<String, Integer> goods = new HashMap<String, Integer>();

		for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		}

		System.out.println(ans);
		scan.close();
	}
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int ans = 0;
		HashMap<String, Integer> goods = new HashMap<String, Integer>();

		for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		}

		System.out.println(ans);
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int ans = 0;
		HashMap<String, Integer> goods = new HashMap<String, Integer>();

		for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		}

		System.out.println(ans);
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int ans = 0;
		HashMap<String, Integer> goods = new HashMap<String, Integer>();

		for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		}

		System.out.println(ans);
		scan.close();
	} 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 HashMap<String, Integer> goods = new HashMap<String, Integer>(); goods new HashMap<String, Integer>() for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		} {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		} String S = scan.next(); S scan.next() scan.next scan if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			} goods.containsKey(S) goods.containsKey goods S {
				continue;
			} continue; {
				ans++;
				goods.put(S, 1);
			} ans++ ans goods.put(S, 1) goods.put goods S 1 System.out.println(ans) System.out.println System.out System System.out ans scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int ans = 0;
		HashMap<String, Integer> goods = new HashMap<String, Integer>();

		for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		}

		System.out.println(ans);
		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int ans = 0;
		HashMap<String, Integer> goods = new HashMap<String, Integer>();

		for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		}

		System.out.println(ans);
		scan.close();
	}
} Main

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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int ans = 0;
		HashMap<String, Integer> goods = new HashMap<String, Integer>();

		for (int i = 0; i < N; i++) {
			String S = scan.next();
			if(goods.containsKey(S)) {
				continue;
			}else {
				ans++;
				goods.put(S, 1);
			}
		}

		System.out.println(ans);
		scan.close();
	}
}
