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 A = Integer.parseInt(sc.nextLine());

		Set<String> items =new HashSet<String>();

		for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		}

		System.out.println(items.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 sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.nextLine());

		Set<String> items =new HashSet<String>();

		for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		}

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

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.nextLine());

		Set<String> items =new HashSet<String>();

		for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		}

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

	} main {
		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.nextLine());

		Set<String> items =new HashSet<String>();

		for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		}

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

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.nextLine()); A Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc Set<String> items =new HashSet<String>(); items new HashSet<String>() for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		} int i = 0; int i = 0; i 0 i < A i A i++ i++ i {
			items.add(sc.nextLine());
		} {
			items.add(sc.nextLine());
		} items.add(sc.nextLine()) items.add items sc.nextLine() sc.nextLine sc System.out.println(items.size()) System.out.println System.out System System.out items.size() items.size items String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.nextLine());

		Set<String> items =new HashSet<String>();

		for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		}

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

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.nextLine());

		Set<String> items =new HashSet<String>();

		for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		}

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

	}
} 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 A = Integer.parseInt(sc.nextLine());

		Set<String> items =new HashSet<String>();

		for (int i = 0; i < A; i++) {
			items.add(sc.nextLine());
		}

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

	}
}