import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

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

		int N = Integer.parseInt(scan.nextLine());

		for(int i = 0; i < N; i++){
			String S = scan.nextLine();
			lottery.add(S);
		}

		System.out.println(lottery.size());
	}
} import java.util.LinkedHashSet; LinkedHashSet 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){
		Set<String> lottery = new LinkedHashSet<String>();
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine());

		for(int i = 0; i < N; i++){
			String S = scan.nextLine();
			lottery.add(S);
		}

		System.out.println(lottery.size());
	}
} Main public static void main(String[] args){
		Set<String> lottery = new LinkedHashSet<String>();
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine());

		for(int i = 0; i < N; i++){
			String S = scan.nextLine();
			lottery.add(S);
		}

		System.out.println(lottery.size());
	} main {
		Set<String> lottery = new LinkedHashSet<String>();
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine());

		for(int i = 0; i < N; i++){
			String S = scan.nextLine();
			lottery.add(S);
		}

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

		int N = Integer.parseInt(scan.nextLine());

		for(int i = 0; i < N; i++){
			String S = scan.nextLine();
			lottery.add(S);
		}

		System.out.println(lottery.size());
	}
} public class Main {
	public static void main(String[] args){
		Set<String> lottery = new LinkedHashSet<String>();
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine());

		for(int i = 0; i < N; i++){
			String S = scan.nextLine();
			lottery.add(S);
		}

		System.out.println(lottery.size());
	}
} Main
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

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

		int N = Integer.parseInt(scan.nextLine());

		for(int i = 0; i < N; i++){
			String S = scan.nextLine();
			lottery.add(S);
		}

		System.out.println(lottery.size());
	}
}
