import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine());
		Set<String> Ss = new TreeSet<>();
		for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
		System.out.println(Ss.size());
	}
} import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util import java.util.TreeSet; TreeSet java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine());
		Set<String> Ss = new TreeSet<>();
		for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
		System.out.println(Ss.size());
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine());
		Set<String> Ss = new TreeSet<>();
		for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
		System.out.println(Ss.size());
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine());
		Set<String> Ss = new TreeSet<>();
		for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
		System.out.println(Ss.size());
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.nextLine()); N Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner Set<String> Ss = new TreeSet<>(); Ss new TreeSet<>() for(int i = 0; i < N; i++) Ss.add(scanner.nextLine()); int i = 0; int i = 0; i 0 i < N i N i++ i++ i Ss.add(scanner.nextLine()); Ss.add(scanner.nextLine()) Ss.add Ss scanner.nextLine() scanner.nextLine scanner System.out.println(Ss.size()) System.out.println System.out System System.out Ss.size() Ss.size Ss String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine());
		Set<String> Ss = new TreeSet<>();
		for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
		System.out.println(Ss.size());
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine());
		Set<String> Ss = new TreeSet<>();
		for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
		System.out.println(Ss.size());
	}
} Main
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine());
		Set<String> Ss = new TreeSet<>();
		for(int i = 0; i < N; i++) Ss.add(scanner.nextLine());
		System.out.println(Ss.size());
	}
}
