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

public class Main {

	public static void main(String[] args) {
		int N, cnt = 0;
		String hin;
		Scanner scan = new Scanner(System.in);
		N= scan.nextInt();
		
		HashSet name = new HashSet();
		
		for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		}
		System.out.println(name.size());
	}

} import java.util.Scanner; Scanner java.util import java.util.HashSet; HashSet java.util public class Main {

	public static void main(String[] args) {
		int N, cnt = 0;
		String hin;
		Scanner scan = new Scanner(System.in);
		N= scan.nextInt();
		
		HashSet name = new HashSet();
		
		for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		}
		System.out.println(name.size());
	}

} Main public static void main(String[] args) {
		int N, cnt = 0;
		String hin;
		Scanner scan = new Scanner(System.in);
		N= scan.nextInt();
		
		HashSet name = new HashSet();
		
		for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		}
		System.out.println(name.size());
	} main {
		int N, cnt = 0;
		String hin;
		Scanner scan = new Scanner(System.in);
		N= scan.nextInt();
		
		HashSet name = new HashSet();
		
		for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		}
		System.out.println(name.size());
	} int N N cnt = 0; cnt 0 String hin; hin Scanner scan = new Scanner(System.in); scan new Scanner(System.in) N= scan.nextInt() N scan.nextInt() scan.nextInt scan HashSet name = new HashSet(); name new HashSet() for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			hin = scan.next();
			name.add(hin);
		} {
			hin = scan.next();
			name.add(hin);
		} hin = scan.next() hin scan.next() scan.next scan name.add(hin) name.add name hin System.out.println(name.size()) System.out.println System.out System System.out name.size() name.size name String[] args args public class Main {

	public static void main(String[] args) {
		int N, cnt = 0;
		String hin;
		Scanner scan = new Scanner(System.in);
		N= scan.nextInt();
		
		HashSet name = new HashSet();
		
		for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		}
		System.out.println(name.size());
	}

} public class Main {

	public static void main(String[] args) {
		int N, cnt = 0;
		String hin;
		Scanner scan = new Scanner(System.in);
		N= scan.nextInt();
		
		HashSet name = new HashSet();
		
		for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		}
		System.out.println(name.size());
	}

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

public class Main {

	public static void main(String[] args) {
		int N, cnt = 0;
		String hin;
		Scanner scan = new Scanner(System.in);
		N= scan.nextInt();
		
		HashSet name = new HashSet();
		
		for(int i = 1; i <= N; i++) {
			hin = scan.next();
			name.add(hin);
		}
		System.out.println(name.size());
	}

}
