import java.util.*;
 
public class Main{
	public static void main(String[] args) {
	    Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set=new HashSet<>();
		int ans=0;
		for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		}
		System.out.print(ans);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args) {
	    Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set=new HashSet<>();
		int ans=0;
		for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		}
		System.out.print(ans);
	}
} Main public static void main(String[] args) {
	    Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set=new HashSet<>();
		int ans=0;
		for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		}
		System.out.print(ans);
	} main {
	    Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set=new HashSet<>();
		int ans=0;
		for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		}
		System.out.print(ans);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc Set<String> set=new HashSet<>(); set new HashSet<>() int ans=0; ans 0 for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		} {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		} String s=sc.next(); s sc.next() sc.next sc if(!set.contains(s)) {
				set.add(s);
				ans++;
			} !set.contains(s) set.contains(s) set.contains set s {
				set.add(s);
				ans++;
			} set.add(s) set.add set s ans++ ans System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args) {
	    Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set=new HashSet<>();
		int ans=0;
		for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		}
		System.out.print(ans);
	}
} public class Main{
	public static void main(String[] args) {
	    Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set=new HashSet<>();
		int ans=0;
		for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		}
		System.out.print(ans);
	}
} Main
import java.util.*;
 
public class Main{
	public static void main(String[] args) {
	    Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set=new HashSet<>();
		int ans=0;
		for(int i=0;i<n;i++) {
			String s=sc.next();
			if(!set.contains(s)) {
				set.add(s);
				ans++;
			}
		}
		System.out.print(ans);
	}
}