import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;

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

public class Main{
	public static void main(String args[]) {
		Scanner sc=new Scanner(System.in);
	int N=sc.nextInt();
	List<String> strList1=new ArrayList<String>();
	for(int i=0;i<N;i++) {
		String S=sc.next();
		strList1.add(S);
	}
	List<String> listB = new ArrayList<String>(new HashSet<>(strList1));
	int len=listB.size();
	System.out.println(len);
	}
}
