import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		String A[] = new String[N];
		int count = 1;
		for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		}
		Arrays.sort(A);

		for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		}
		System.out.println(count);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		String A[] = new String[N];
		int count = 1;
		for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		}
		Arrays.sort(A);

		for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		String A[] = new String[N];
		int count = 1;
		for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		}
		Arrays.sort(A);

		for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		}
		System.out.println(count);
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		String A[] = new String[N];
		int count = 1;
		for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		}
		Arrays.sort(A);

		for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		}
		System.out.println(count);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner String A[] = new String[N]; A new String[N] N int count = 1; count 1 for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = scanner.next();
		} {
			A[i] = scanner.next();
		} A[i] = scanner.next() A[i] A i scanner.next() scanner.next scanner Arrays.sort(A) Arrays.sort Arrays A for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		} int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		} {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		} if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			} !(A[i].equals(A[i + 1])) (A[i].equals(A[i + 1])) A[i].equals A[i] A i A[i + 1] A i + 1 i 1 {
				count += 1;
			} count += 1 count 1 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		String A[] = new String[N];
		int count = 1;
		for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		}
		Arrays.sort(A);

		for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		String A[] = new String[N];
		int count = 1;
		for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		}
		Arrays.sort(A);

		for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		String A[] = new String[N];
		int count = 1;
		for (int i = 0; i < N; i++) {
			A[i] = scanner.next();
		}
		Arrays.sort(A);

		for (int i = 0; i < N - 1; i++) {
			if (!(A[i].equals(A[i + 1]))) {
				count += 1;
			}
		}
		System.out.println(count);
	}
}
