import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		String[] list = new String[N];
		for(int i=0;i<N;i++) {
			list[i]=scan.next();
		}
		scan.close();
		
		Set<String> linkedHashSet = new LinkedHashSet<String>();
		
		for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		}
		Object[] num = linkedHashSet.toArray();
		
		System.out.println(num.length);
		
	}
} import java.util.LinkedHashSet; LinkedHashSet 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 scan = new Scanner(System.in);
		int N = scan.nextInt();
		String[] list = new String[N];
		for(int i=0;i<N;i++) {
			list[i]=scan.next();
		}
		scan.close();
		
		Set<String> linkedHashSet = new LinkedHashSet<String>();
		
		for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		}
		Object[] num = linkedHashSet.toArray();
		
		System.out.println(num.length);
		
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		String[] list = new String[N];
		for(int i=0;i<N;i++) {
			list[i]=scan.next();
		}
		scan.close();
		
		Set<String> linkedHashSet = new LinkedHashSet<String>();
		
		for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		}
		Object[] num = linkedHashSet.toArray();
		
		System.out.println(num.length);
		
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		String[] list = new String[N];
		for(int i=0;i<N;i++) {
			list[i]=scan.next();
		}
		scan.close();
		
		Set<String> linkedHashSet = new LinkedHashSet<String>();
		
		for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		}
		Object[] num = linkedHashSet.toArray();
		
		System.out.println(num.length);
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan String[] list = new String[N]; list new String[N] N for(int i=0;i<N;i++) {
			list[i]=scan.next();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			list[i]=scan.next();
		} {
			list[i]=scan.next();
		} list[i]=scan.next() list[i] list i scan.next() scan.next scan scan.close() scan.close scan Set<String> linkedHashSet = new LinkedHashSet<String>(); linkedHashSet new LinkedHashSet<String>() for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		} int i = 0; int i = 0; i 0 i<list.length i list.length list list.length i++ i++ i {
			linkedHashSet.add(list[i]);
		} {
			linkedHashSet.add(list[i]);
		} linkedHashSet.add(list[i]) linkedHashSet.add linkedHashSet list[i] list i Object[] num = linkedHashSet.toArray(); num linkedHashSet.toArray() linkedHashSet.toArray linkedHashSet System.out.println(num.length) System.out.println System.out System System.out num.length num num.length String args[] args public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		String[] list = new String[N];
		for(int i=0;i<N;i++) {
			list[i]=scan.next();
		}
		scan.close();
		
		Set<String> linkedHashSet = new LinkedHashSet<String>();
		
		for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		}
		Object[] num = linkedHashSet.toArray();
		
		System.out.println(num.length);
		
	}
} public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		String[] list = new String[N];
		for(int i=0;i<N;i++) {
			list[i]=scan.next();
		}
		scan.close();
		
		Set<String> linkedHashSet = new LinkedHashSet<String>();
		
		for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		}
		Object[] num = linkedHashSet.toArray();
		
		System.out.println(num.length);
		
	}
} Main
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		String[] list = new String[N];
		for(int i=0;i<N;i++) {
			list[i]=scan.next();
		}
		scan.close();
		
		Set<String> linkedHashSet = new LinkedHashSet<String>();
		
		for(int i = 0; i<list.length;i++) {
			linkedHashSet.add(list[i]);
		}
		Object[] num = linkedHashSet.toArray();
		
		System.out.println(num.length);
		
	}
}