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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		String[] S = new String[N];
		Set<String> list = new LinkedHashSet<String>();
		for(int i = 0; i < N; i++) {
			 S[i] = sc.next();
		}
		sc.close();
		
		for(int i = 0; i < N; i++) {
			 list.add(S[i]);
		}
		
		System.out.println(list.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) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		String[] S = new String[N];
		Set<String> list = new LinkedHashSet<String>();
		for(int i = 0; i < N; i++) {
			 S[i] = sc.next();
		}
		sc.close();
		
		for(int i = 0; i < N; i++) {
			 list.add(S[i]);
		}
		
		System.out.println(list.size());
		
	}

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

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

} public class Main {

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

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

public class Main {

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

}