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

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = Integer.parseInt(stdIn.nextLine());
		String[] S = new String[N];
		for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		}
		HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
		for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		}
		System.out.println(itemNum.size());
	}
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = Integer.parseInt(stdIn.nextLine());
		String[] S = new String[N];
		for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		}
		HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
		for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		}
		System.out.println(itemNum.size());
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = Integer.parseInt(stdIn.nextLine());
		String[] S = new String[N];
		for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		}
		HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
		for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		}
		System.out.println(itemNum.size());
	} main {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = Integer.parseInt(stdIn.nextLine());
		String[] S = new String[N];
		for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		}
		HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
		for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		}
		System.out.println(itemNum.size());
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = Integer.parseInt(stdIn.nextLine()); N Integer.parseInt(stdIn.nextLine()) Integer.parseInt Integer stdIn.nextLine() stdIn.nextLine stdIn String[] S = new String[N]; S new String[N] N for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		} int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
			S[i] = stdIn.nextLine();
		} {
			S[i] = stdIn.nextLine();
		} S[i] = stdIn.nextLine() S[i] S i stdIn.nextLine() stdIn.nextLine stdIn HashMap<String, Integer> itemNum = new HashMap<String, Integer>(); itemNum new HashMap<String, Integer>() for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		} int i = 0; int i = 0; i 0 i < S.length i S.length S S.length i ++ i ++ i {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		} {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		} if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			} itemNum.get(S[i]) == null itemNum.get(S[i]) itemNum.get itemNum S[i] S i null {
				itemNum.put(S[i], 1);
			} itemNum.put(S[i], 1) itemNum.put itemNum S[i] S i 1 System.out.println(itemNum.size()) System.out.println System.out System System.out itemNum.size() itemNum.size itemNum String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = Integer.parseInt(stdIn.nextLine());
		String[] S = new String[N];
		for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		}
		HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
		for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		}
		System.out.println(itemNum.size());
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = Integer.parseInt(stdIn.nextLine());
		String[] S = new String[N];
		for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		}
		HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
		for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		}
		System.out.println(itemNum.size());
	}
} Main
import java.util.HashMap;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = Integer.parseInt(stdIn.nextLine());
		String[] S = new String[N];
		for(int i = 0; i < N; i ++) {
			S[i] = stdIn.nextLine();
		}
		HashMap<String, Integer> itemNum = new HashMap<String, Integer>();
		for(int i = 0; i < S.length; i ++) {
			if(itemNum.get(S[i]) == null) {
				itemNum.put(S[i], 1);
			}
		}
		System.out.println(itemNum.size());
	}
}