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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());

		String aaa = sc.next();
		Map<String, String> prizeMap = new HashMap<>();
		prizeMap.put(aaa,aaa);

		for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		}
		sc.close();
		System.out.println(prizeMap.size());
	}

} 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());

		String aaa = sc.next();
		Map<String, String> prizeMap = new HashMap<>();
		prizeMap.put(aaa,aaa);

		for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		}
		sc.close();
		System.out.println(prizeMap.size());
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());

		String aaa = sc.next();
		Map<String, String> prizeMap = new HashMap<>();
		prizeMap.put(aaa,aaa);

		for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		}
		sc.close();
		System.out.println(prizeMap.size());
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());

		String aaa = sc.next();
		Map<String, String> prizeMap = new HashMap<>();
		prizeMap.put(aaa,aaa);

		for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		}
		sc.close();
		System.out.println(prizeMap.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc String aaa = sc.next(); aaa sc.next() sc.next sc Map<String, String> prizeMap = new HashMap<>(); prizeMap new HashMap<>() prizeMap.put(aaa,aaa) prizeMap.put prizeMap aaa aaa for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		} int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		} {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		} String prize = sc.next(); prize sc.next() sc.next sc if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			} prizeMap.containsKey(prize) prizeMap.containsKey prizeMap prize {
				//取れちゃった
			} {
				prizeMap.put(prize, prize);
			} prizeMap.put(prize, prize) prizeMap.put prizeMap prize prize sc.close() sc.close sc System.out.println(prizeMap.size()) System.out.println System.out System System.out prizeMap.size() prizeMap.size prizeMap String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());

		String aaa = sc.next();
		Map<String, String> prizeMap = new HashMap<>();
		prizeMap.put(aaa,aaa);

		for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		}
		sc.close();
		System.out.println(prizeMap.size());
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());

		String aaa = sc.next();
		Map<String, String> prizeMap = new HashMap<>();
		prizeMap.put(aaa,aaa);

		for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		}
		sc.close();
		System.out.println(prizeMap.size());
	}

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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());

		String aaa = sc.next();
		Map<String, String> prizeMap = new HashMap<>();
		prizeMap.put(aaa,aaa);

		for(int i = 1;i < N; i++) {
			String prize = sc.next();
			if(prizeMap.containsKey(prize)) {
				//取れちゃった
			}else {
				prizeMap.put(prize, prize);
			}
		}
		sc.close();
		System.out.println(prizeMap.size());
	}

}
