
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		List<String> listS = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		}
		List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS));
		System.out.println(listSsec.size());
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		List<String> listS = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		}
		List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS));
		System.out.println(listSsec.size());
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		List<String> listS = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		}
		List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS));
		System.out.println(listSsec.size());
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		List<String> listS = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		}
		List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS));
		System.out.println(listSsec.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<String> listS = new ArrayList<String>(); listS new ArrayList<String>() for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String s = sc.next();
			listS.add(s);
			s = null;
		} {
			String s = sc.next();
			listS.add(s);
			s = null;
		} String s = sc.next(); s sc.next() sc.next sc listS.add(s) listS.add listS s s = null s null List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS)); listSsec new ArrayList<String>(new LinkedHashSet<>(listS)) System.out.println(listSsec.size()) System.out.println System.out System System.out listSsec.size() listSsec.size listSsec String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		List<String> listS = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		}
		List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS));
		System.out.println(listSsec.size());
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		List<String> listS = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		}
		List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS));
		System.out.println(listSsec.size());
	}
} Main

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		List<String> listS = new ArrayList<String>();
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			listS.add(s);
			s = null;
		}
		List<String> listSsec = new ArrayList<String>(new LinkedHashSet<>(listS));
		System.out.println(listSsec.size());
	}
}