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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		Set<String> gift = new HashSet<>();

		int N=scan.nextInt();

		for(int i = 0;i < N;i++) {
			gift.add(scan.next());
		}

		System.out.println(gift.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(String[] args) {
		Scanner scan = new Scanner(System.in);
		Set<String> gift = new HashSet<>();

		int N=scan.nextInt();

		for(int i = 0;i < N;i++) {
			gift.add(scan.next());
		}

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

	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		Set<String> gift = new HashSet<>();

		int N=scan.nextInt();

		for(int i = 0;i < N;i++) {
			gift.add(scan.next());
		}

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

	} main {
		Scanner scan = new Scanner(System.in);
		Set<String> gift = new HashSet<>();

		int N=scan.nextInt();

		for(int i = 0;i < N;i++) {
			gift.add(scan.next());
		}

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

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

		int N=scan.nextInt();

		for(int i = 0;i < N;i++) {
			gift.add(scan.next());
		}

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

	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		Set<String> gift = new HashSet<>();

		int N=scan.nextInt();

		for(int i = 0;i < N;i++) {
			gift.add(scan.next());
		}

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

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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		Set<String> gift = new HashSet<>();

		int N=scan.nextInt();

		for(int i = 0;i < N;i++) {
			gift.add(scan.next());
		}

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

	}
}
