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

public class Main {
	

	
	public static void main(String[] args) {

		
		Scanner s = new Scanner(System.in);
		HashSet<String> h = new HashSet<>();
		int n = s.nextInt();
		
		while(n--!=0) {
			h.add(s.next());
		}
		System.out.println(h.size());
		
		
	}
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
	

	
	public static void main(String[] args) {

		
		Scanner s = new Scanner(System.in);
		HashSet<String> h = new HashSet<>();
		int n = s.nextInt();
		
		while(n--!=0) {
			h.add(s.next());
		}
		System.out.println(h.size());
		
		
	}
} Main public static void main(String[] args) {

		
		Scanner s = new Scanner(System.in);
		HashSet<String> h = new HashSet<>();
		int n = s.nextInt();
		
		while(n--!=0) {
			h.add(s.next());
		}
		System.out.println(h.size());
		
		
	} main {

		
		Scanner s = new Scanner(System.in);
		HashSet<String> h = new HashSet<>();
		int n = s.nextInt();
		
		while(n--!=0) {
			h.add(s.next());
		}
		System.out.println(h.size());
		
		
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) HashSet<String> h = new HashSet<>(); h new HashSet<>() int n = s.nextInt(); n s.nextInt() s.nextInt s while(n--!=0) {
			h.add(s.next());
		} n--!=0 n-- n 0 {
			h.add(s.next());
		} h.add(s.next()) h.add h s.next() s.next s System.out.println(h.size()) System.out.println System.out System System.out h.size() h.size h String[] args args public class Main {
	

	
	public static void main(String[] args) {

		
		Scanner s = new Scanner(System.in);
		HashSet<String> h = new HashSet<>();
		int n = s.nextInt();
		
		while(n--!=0) {
			h.add(s.next());
		}
		System.out.println(h.size());
		
		
	}
} public class Main {
	

	
	public static void main(String[] args) {

		
		Scanner s = new Scanner(System.in);
		HashSet<String> h = new HashSet<>();
		int n = s.nextInt();
		
		while(n--!=0) {
			h.add(s.next());
		}
		System.out.println(h.size());
		
		
	}
} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {
	

	
	public static void main(String[] args) {

		
		Scanner s = new Scanner(System.in);
		HashSet<String> h = new HashSet<>();
		int n = s.nextInt();
		
		while(n--!=0) {
			h.add(s.next());
		}
		System.out.println(h.size());
		
		
	}
}