import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		List<String> list = new ArrayList<String>();
		for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		}
		scan.close();
		List<String> ans = new ArrayList<>(new HashSet<>(list));
		System.out.println(ans.size());
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		List<String> list = new ArrayList<String>();
		for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		}
		scan.close();
		List<String> ans = new ArrayList<>(new HashSet<>(list));
		System.out.println(ans.size());
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		List<String> list = new ArrayList<String>();
		for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		}
		scan.close();
		List<String> ans = new ArrayList<>(new HashSet<>(list));
		System.out.println(ans.size());
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		List<String> list = new ArrayList<String>();
		for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		}
		scan.close();
		List<String> ans = new ArrayList<>(new HashSet<>(list));
		System.out.println(ans.size());
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan List<String> list = new ArrayList<String>(); list new ArrayList<String>() for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		} int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
			String s = scan.next();
			list.add(s);
		} {
			String s = scan.next();
			list.add(s);
		} String s = scan.next(); s scan.next() scan.next scan list.add(s) list.add list s scan.close() scan.close scan List<String> ans = new ArrayList<>(new HashSet<>(list)); ans new ArrayList<>(new HashSet<>(list)) System.out.println(ans.size()) System.out.println System.out System System.out ans.size() ans.size ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		List<String> list = new ArrayList<String>();
		for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		}
		scan.close();
		List<String> ans = new ArrayList<>(new HashSet<>(list));
		System.out.println(ans.size());
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		List<String> list = new ArrayList<String>();
		for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		}
		scan.close();
		List<String> ans = new ArrayList<>(new HashSet<>(list));
		System.out.println(ans.size());
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		List<String> list = new ArrayList<String>();
		for (int i = 0 ; i < N; i++) {
			String s = scan.next();
			list.add(s);
		}
		scan.close();
		List<String> ans = new ArrayList<>(new HashSet<>(list));
		System.out.println(ans.size());
	}
}