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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Set<String> items = new HashSet<String>();
		int n = sc.nextInt();
		for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		}
		System.out.println(items.size());
	}
} import java.util.HashSet; HashSet 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);
		Set<String> items = new HashSet<String>();
		int n = sc.nextInt();
		for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		}
		System.out.println(items.size());
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Set<String> items = new HashSet<String>();
		int n = sc.nextInt();
		for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		}
		System.out.println(items.size());
	} main {
		Scanner sc = new Scanner(System.in);
		Set<String> items = new HashSet<String>();
		int n = sc.nextInt();
		for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		}
		System.out.println(items.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Set<String> items = new HashSet<String>(); items new HashSet<String>() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		} {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		} String item = sc.next(); item sc.next() sc.next sc if(!items.contains(item)) items.add(item); !items.contains(item) items.contains(item) items.contains items item items.add(item) items.add items item System.out.println(items.size()) System.out.println System.out System System.out items.size() items.size items String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Set<String> items = new HashSet<String>();
		int n = sc.nextInt();
		for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		}
		System.out.println(items.size());
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Set<String> items = new HashSet<String>();
		int n = sc.nextInt();
		for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		}
		System.out.println(items.size());
	}
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Set<String> items = new HashSet<String>();
		int n = sc.nextInt();
		for(int i=0;i<n;i++) {
			String item = sc.next();
			if(!items.contains(item)) items.add(item);
		}
		System.out.println(items.size());
	}
}