import java.util.HashMap;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int times = Integer.parseInt(scanner.nextLine());
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		}

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

	}
} import java.util.HashMap; HashMap 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 times = Integer.parseInt(scanner.nextLine());
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		}

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

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

		Scanner scanner = new Scanner(System.in);

		int times = Integer.parseInt(scanner.nextLine());
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		}

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

	} main {

		Scanner scanner = new Scanner(System.in);

		int times = Integer.parseInt(scanner.nextLine());
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		}

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

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int times = Integer.parseInt(scanner.nextLine()); times Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner HashMap<String, Integer> map = new HashMap<String, Integer>(); map new HashMap<String, Integer>() for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		} int i = 0; int i = 0; i 0 i < times i times i++ i++ i {
			map.put(scanner.nextLine(),1);
		} {
			map.put(scanner.nextLine(),1);
		} map.put(scanner.nextLine(),1) map.put map scanner.nextLine() scanner.nextLine scanner 1 System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int times = Integer.parseInt(scanner.nextLine());
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		}

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

	}
} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int times = Integer.parseInt(scanner.nextLine());
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		}

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

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

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int times = Integer.parseInt(scanner.nextLine());
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		for(int i = 0; i < times; i++) {
			map.put(scanner.nextLine(),1);
		}

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

	}
}