import java.util.*;
public class Main{


	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		long s  =sc.nextLong();
	 HashSet<String> ss = new HashSet<String>();
		while(s-->0) {
			String as = sc.next();
			ss.add(as);
		}
		System.out.println(ss.size());
	}

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


	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		long s  =sc.nextLong();
	 HashSet<String> ss = new HashSet<String>();
		while(s-->0) {
			String as = sc.next();
			ss.add(as);
		}
		System.out.println(ss.size());
	}

} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		long s  =sc.nextLong();
	 HashSet<String> ss = new HashSet<String>();
		while(s-->0) {
			String as = sc.next();
			ss.add(as);
		}
		System.out.println(ss.size());
	} main {
		Scanner sc = new Scanner(System.in);

		long s  =sc.nextLong();
	 HashSet<String> ss = new HashSet<String>();
		while(s-->0) {
			String as = sc.next();
			ss.add(as);
		}
		System.out.println(ss.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long s  =sc.nextLong(); s sc.nextLong() sc.nextLong sc HashSet<String> ss = new HashSet<String>(); ss new HashSet<String>() while(s-->0) {
			String as = sc.next();
			ss.add(as);
		} s-->0 s-- s 0 {
			String as = sc.next();
			ss.add(as);
		} String as = sc.next(); as sc.next() sc.next sc ss.add(as) ss.add ss as System.out.println(ss.size()) System.out.println System.out System System.out ss.size() ss.size ss String[] args args public class Main{


	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		long s  =sc.nextLong();
	 HashSet<String> ss = new HashSet<String>();
		while(s-->0) {
			String as = sc.next();
			ss.add(as);
		}
		System.out.println(ss.size());
	}

} public class Main{


	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		long s  =sc.nextLong();
	 HashSet<String> ss = new HashSet<String>();
		while(s-->0) {
			String as = sc.next();
			ss.add(as);
		}
		System.out.println(ss.size());
	}

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


	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		long s  =sc.nextLong();
	 HashSet<String> ss = new HashSet<String>();
		while(s-->0) {
			String as = sc.next();
			ss.add(as);
		}
		System.out.println(ss.size());
	}

}
