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

public class Main {

	public static void main(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());
		}

		System.out.println(s.size());

		sc.close();
	}

} 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(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());
		}

		System.out.println(s.size());

		sc.close();
	}

} Main public static void main(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());
		}

		System.out.println(s.size());

		sc.close();
	} 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());
		}

		System.out.println(s.size());

		sc.close();
	} 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 System.out.println(s.size()) System.out.println System.out System System.out s.size() s.size s sc.close() sc.close sc String[] args args public class Main {

	public static void main(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());
		}

		System.out.println(s.size());

		sc.close();
	}

} public class Main {

	public static void main(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());
		}

		System.out.println(s.size());

		sc.close();
	}

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

public class Main {

	public static void main(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());
		}

		System.out.println(s.size());

		sc.close();
	}

}
