import java.util.*;

public class Main {
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		String[] S = new String[N];
		
		for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		}
		Arrays.parallelSort(S);
		int ans = 0;
		
		for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		}
		
		System.out.println(ans);
		keyboard.close();
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		String[] S = new String[N];
		
		for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		}
		Arrays.parallelSort(S);
		int ans = 0;
		
		for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		}
		
		System.out.println(ans);
		keyboard.close();
	}
} Main public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		String[] S = new String[N];
		
		for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		}
		Arrays.parallelSort(S);
		int ans = 0;
		
		for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		}
		
		System.out.println(ans);
		keyboard.close();
	} main {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		String[] S = new String[N];
		
		for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		}
		Arrays.parallelSort(S);
		int ans = 0;
		
		for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		}
		
		System.out.println(ans);
		keyboard.close();
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) int N = keyboard.nextInt(); N keyboard.nextInt() keyboard.nextInt keyboard String[] S = new String[N]; S new String[N] N for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		} int n=0; int n=0; n 0 n<N n N n++ n++ n {
			S[n] = keyboard.next();
		} {
			S[n] = keyboard.next();
		} S[n] = keyboard.next() S[n] S n keyboard.next() keyboard.next keyboard Arrays.parallelSort(S) Arrays.parallelSort Arrays S int ans = 0; ans 0 for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		} int i =0; int i =0; i 0 i<N i N i++ i++ i {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		} {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		} if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			} i == 0 i 0 {
				ans++;
			} ans++ ans {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			} if(!(S[i].equals(S[i-1]))) {
					ans++;
				} !(S[i].equals(S[i-1])) (S[i].equals(S[i-1])) S[i].equals S[i] S i S[i-1] S i-1 i 1 {
					ans++;
				} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans keyboard.close() keyboard.close keyboard String[] args args public class Main {
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		String[] S = new String[N];
		
		for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		}
		Arrays.parallelSort(S);
		int ans = 0;
		
		for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		}
		
		System.out.println(ans);
		keyboard.close();
	}
} public class Main {
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		String[] S = new String[N];
		
		for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		}
		Arrays.parallelSort(S);
		int ans = 0;
		
		for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		}
		
		System.out.println(ans);
		keyboard.close();
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		String[] S = new String[N];
		
		for(int n=0; n<N; n++) {
			S[n] = keyboard.next();
		}
		Arrays.parallelSort(S);
		int ans = 0;
		
		for(int i =0; i<N; i++) {
			if(i == 0) {
				ans++;
			}else {
				if(!(S[i].equals(S[i-1]))) {
					ans++;
				}
			}
		}
		
		System.out.println(ans);
		keyboard.close();
	}
}
