

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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String[] s = new String[n];

		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}

		HashMap<String, Integer> map = new HashMap<String, Integer>();
		map.put(s[0], 1);
		int ans = 1;

		for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		}

		System.out.println(ans);
	}

} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String[] s = new String[n];

		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}

		HashMap<String, Integer> map = new HashMap<String, Integer>();
		map.put(s[0], 1);
		int ans = 1;

		for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		}

		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String[] s = new String[n];

		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}

		HashMap<String, Integer> map = new HashMap<String, Integer>();
		map.put(s[0], 1);
		int ans = 1;

		for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		}

		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String[] s = new String[n];

		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}

		HashMap<String, Integer> map = new HashMap<String, Integer>();
		map.put(s[0], 1);
		int ans = 1;

		for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 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[] s = new String[n]; s new String[n] n for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			s[i] = sc.next();
		} {
			s[i] = sc.next();
		} s[i] = sc.next() s[i] s i sc.next() sc.next sc HashMap<String, Integer> map = new HashMap<String, Integer>(); map new HashMap<String, Integer>() map.put(s[0], 1) map.put map s[0] s 0 1 int ans = 1; ans 1 for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		} int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		} {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		} if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			} !map.containsKey(s[i]) map.containsKey(s[i]) map.containsKey map s[i] s i {
				ans++;
				map.put(s[i], 1);
			} ans++ ans map.put(s[i], 1) map.put map s[i] s i 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[] s = new String[n];

		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}

		HashMap<String, Integer> map = new HashMap<String, Integer>();
		map.put(s[0], 1);
		int ans = 1;

		for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 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[] s = new String[n];

		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}

		HashMap<String, Integer> map = new HashMap<String, Integer>();
		map.put(s[0], 1);
		int ans = 1;

		for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		}

		System.out.println(ans);
	}

} Main


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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String[] s = new String[n];

		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}

		HashMap<String, Integer> map = new HashMap<String, Integer>();
		map.put(s[0], 1);
		int ans = 1;

		for (int i = 1; i < n; i++) {
			if (!map.containsKey(s[i])) {
				ans++;
				map.put(s[i], 1);
			}
		}

		System.out.println(ans);
	}

}
