
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner cin = new Scanner(System.in);
		
		int N = cin.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0;i<N;i++) S.add(cin.next());
		
		System.out.println(S.size());
		
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner cin = new Scanner(System.in);
		
		int N = cin.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0;i<N;i++) S.add(cin.next());
		
		System.out.println(S.size());
		
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner cin = new Scanner(System.in);
		
		int N = cin.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0;i<N;i++) S.add(cin.next());
		
		System.out.println(S.size());
		
	} main {
		// TODO Auto-generated method stub
		
		Scanner cin = new Scanner(System.in);
		
		int N = cin.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0;i<N;i++) S.add(cin.next());
		
		System.out.println(S.size());
		
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int N = cin.nextInt(); N cin.nextInt() cin.nextInt cin Set<String> S = new HashSet<>(); S new HashSet<>() for(int i = 0;i<N;i++) S.add(cin.next()); int i = 0; int i = 0; i 0 i<N i N i++ i++ i S.add(cin.next()); S.add(cin.next()) S.add S cin.next() cin.next cin System.out.println(S.size()) System.out.println System.out System System.out S.size() S.size S String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner cin = new Scanner(System.in);
		
		int N = cin.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0;i<N;i++) S.add(cin.next());
		
		System.out.println(S.size());
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner cin = new Scanner(System.in);
		
		int N = cin.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0;i<N;i++) S.add(cin.next());
		
		System.out.println(S.size());
		
	}

} Main

import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner cin = new Scanner(System.in);
		
		int N = cin.nextInt();
		Set<String> S = new HashSet<>();
		for(int i = 0;i<N;i++) S.add(cin.next());
		
		System.out.println(S.size());
		
	}

}
