//package beg_164;
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		String yvgubhij = s.nextLine();
		
		HashSet<String> set = new HashSet<String>();
		for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		}
		System.out.println(set.size());
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		String yvgubhij = s.nextLine();
		
		HashSet<String> set = new HashSet<String>();
		for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		}
		System.out.println(set.size());
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		String yvgubhij = s.nextLine();
		
		HashSet<String> set = new HashSet<String>();
		for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		}
		System.out.println(set.size());
	} main {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		String yvgubhij = s.nextLine();
		
		HashSet<String> set = new HashSet<String>();
		for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		}
		System.out.println(set.size());
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s String yvgubhij = s.nextLine(); yvgubhij s.nextLine() s.nextLine s HashSet<String> set = new HashSet<String>(); set new HashSet<String>() for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			String b = s.nextLine();
			set.add(b);
		} {
			String b = s.nextLine();
			set.add(b);
		} String b = s.nextLine(); b s.nextLine() s.nextLine s set.add(b) set.add set b System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		String yvgubhij = s.nextLine();
		
		HashSet<String> set = new HashSet<String>();
		for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		}
		System.out.println(set.size());
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		String yvgubhij = s.nextLine();
		
		HashSet<String> set = new HashSet<String>();
		for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		}
		System.out.println(set.size());
	}

} Main
//package beg_164;
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		String yvgubhij = s.nextLine();
		
		HashSet<String> set = new HashSet<String>();
		for (int i=0;i<a;i++) {
			String b = s.nextLine();
			set.add(b);
		}
		System.out.println(set.size());
	}

}
