import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Set<String> items = new TreeSet<String>();
		final int N = Integer.parseInt(in.next());
		for(int i = 0; i < N; i++) {
			items.add(in.next());
		}
		System.out.println(items.size());
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Set<String> items = new TreeSet<String>();
		final int N = Integer.parseInt(in.next());
		for(int i = 0; i < N; i++) {
			items.add(in.next());
		}
		System.out.println(items.size());
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Set<String> items = new TreeSet<String>();
		final int N = Integer.parseInt(in.next());
		for(int i = 0; i < N; i++) {
			items.add(in.next());
		}
		System.out.println(items.size());
	} main {
		Scanner in = new Scanner(System.in);
		Set<String> items = new TreeSet<String>();
		final int N = Integer.parseInt(in.next());
		for(int i = 0; i < N; i++) {
			items.add(in.next());
		}
		System.out.println(items.size());
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) Set<String> items = new TreeSet<String>(); items new TreeSet<String>() final int N = Integer.parseInt(in.next()); N Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in for(int i = 0; i < N; i++) {
			items.add(in.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			items.add(in.next());
		} {
			items.add(in.next());
		} items.add(in.next()) items.add items in.next() in.next in 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 in = new Scanner(System.in);
		Set<String> items = new TreeSet<String>();
		final int N = Integer.parseInt(in.next());
		for(int i = 0; i < N; i++) {
			items.add(in.next());
		}
		System.out.println(items.size());
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Set<String> items = new TreeSet<String>();
		final int N = Integer.parseInt(in.next());
		for(int i = 0; i < N; i++) {
			items.add(in.next());
		}
		System.out.println(items.size());
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Set<String> items = new TreeSet<String>();
		final int N = Integer.parseInt(in.next());
		for(int i = 0; i < N; i++) {
			items.add(in.next());
		}
		System.out.println(items.size());
	}
}