import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0; i < N; i++) {
			S.add(sc.next());
		}
		sc.close();
		System.out.println(S.size());
	}
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0; i < N; i++) {
			S.add(sc.next());
		}
		sc.close();
		System.out.println(S.size());
	}
} Main public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0; i < N; i++) {
			S.add(sc.next());
		}
		sc.close();
		System.out.println(S.size());
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0; i < N; i++) {
			S.add(sc.next());
		}
		sc.close();
		System.out.println(S.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Set<String> S = new HashSet<>(); S new HashSet<>() for(int i = 0; i < N; i++) {
			S.add(sc.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			S.add(sc.next());
		} {
			S.add(sc.next());
		} S.add(sc.next()) S.add S sc.next() sc.next sc sc.close() sc.close sc System.out.println(S.size()) System.out.println System.out System System.out S.size() S.size S final String[] args args public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0; i < N; i++) {
			S.add(sc.next());
		}
		sc.close();
		System.out.println(S.size());
	}
} public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0; i < N; i++) {
			S.add(sc.next());
		}
		sc.close();
		System.out.println(S.size());
	}
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0; i < N; i++) {
			S.add(sc.next());
		}
		sc.close();
		System.out.println(S.size());
	}
}
