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

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int ans = 1;
		String[] S = new String[N];
		for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		}

		Arrays.sort(S);

		for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		}

		System.out.println(ans);
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int ans = 1;
		String[] S = new String[N];
		for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		}

		Arrays.sort(S);

		for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		}

		System.out.println(ans);
	}

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

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int ans = 1;
		String[] S = new String[N];
		for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		}

		Arrays.sort(S);

		for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		}

		System.out.println(ans);
	} main {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int ans = 1;
		String[] S = new String[N];
		for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		}

		Arrays.sort(S);

		for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		}

		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int ans = 1; ans 1 String[] S = new String[N]; S new String[N] N for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			S[i] = scan.next();
		} {
			S[i] = scan.next();
		} S[i] = scan.next() S[i] S i scan.next() scan.next scan Arrays.sort(S) Arrays.sort Arrays S for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		} int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
			if (!S[i].equals(S[i-1])) {
				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 String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int ans = 1;
		String[] S = new String[N];
		for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		}

		Arrays.sort(S);

		for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		}

		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int ans = 1;
		String[] S = new String[N];
		for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		}

		Arrays.sort(S);

		for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		}

		System.out.println(ans);
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int ans = 1;
		String[] S = new String[N];
		for (int i = 0; i < N; i++) {
			S[i] = scan.next();
		}

		Arrays.sort(S);

		for (int i = 1; i < N; i++) {
			if (!S[i].equals(S[i-1])) {
				ans++;
			}
		}

		System.out.println(ans);
	}

}