import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> al = new ArrayList<String>();
		int a = sc.nextInt();
		for(int i = 0; i < a; i++) {
			al.add(sc.next());
		}
		ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));
		System.out.println(al2.size());
	}
} import java.util.ArrayList; ArrayList java.util import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> al = new ArrayList<String>();
		int a = sc.nextInt();
		for(int i = 0; i < a; i++) {
			al.add(sc.next());
		}
		ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));
		System.out.println(al2.size());
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> al = new ArrayList<String>();
		int a = sc.nextInt();
		for(int i = 0; i < a; i++) {
			al.add(sc.next());
		}
		ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));
		System.out.println(al2.size());
	} main {
		Scanner sc = new Scanner(System.in);
		ArrayList<String> al = new ArrayList<String>();
		int a = sc.nextInt();
		for(int i = 0; i < a; i++) {
			al.add(sc.next());
		}
		ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));
		System.out.println(al2.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<String> al = new ArrayList<String>(); al new ArrayList<String>() int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc for(int i = 0; i < a; i++) {
			al.add(sc.next());
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			al.add(sc.next());
		} {
			al.add(sc.next());
		} al.add(sc.next()) al.add al sc.next() sc.next sc ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al)); al2 new ArrayList<String>(new HashSet<>(al)) System.out.println(al2.size()) System.out.println System.out System System.out al2.size() al2.size al2 String[] args args
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> al = new ArrayList<String>();
		int a = sc.nextInt();
		for(int i = 0; i < a; i++) {
			al.add(sc.next());
		}
		ArrayList<String> al2 = new ArrayList<String>(new HashSet<>(al));
		System.out.println(al2.size());
	}
}