

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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		Set<String> fruits = new HashSet();
		for(int i = 0; i < N; i++) {
			String line = sc.next();
				fruits.add(line);
		}
		System.out.println(fruits.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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		Set<String> fruits = new HashSet();
		for(int i = 0; i < N; i++) {
			String line = sc.next();
				fruits.add(line);
		}
		System.out.println(fruits.size());
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		Set<String> fruits = new HashSet();
		for(int i = 0; i < N; i++) {
			String line = sc.next();
				fruits.add(line);
		}
		System.out.println(fruits.size());
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		Set<String> fruits = new HashSet();
		for(int i = 0; i < N; i++) {
			String line = sc.next();
				fruits.add(line);
		}
		System.out.println(fruits.size());
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		Set<String> fruits = new HashSet();
		for(int i = 0; i < N; i++) {
			String line = sc.next();
				fruits.add(line);
		}
		System.out.println(fruits.size());
	}

} Main


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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		Set<String> fruits = new HashSet();
		for(int i = 0; i < N; i++) {
			String line = sc.next();
				fruits.add(line);
		}
		System.out.println(fruits.size());
	}

}
