import java.util.*;
public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		HashSet<String> set = new HashSet<>();
		for(int i = 0;i < n; ++i){
			set.add(scan.next());
		}
		System.out.println(set.size());

	}

}
//end import java.util.*; util.* java public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		HashSet<String> set = new HashSet<>();
		for(int i = 0;i < n; ++i){
			set.add(scan.next());
		}
		System.out.println(set.size());

	}

} Main public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		HashSet<String> set = new HashSet<>();
		for(int i = 0;i < n; ++i){
			set.add(scan.next());
		}
		System.out.println(set.size());

	} main {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		HashSet<String> set = new HashSet<>();
		for(int i = 0;i < n; ++i){
			set.add(scan.next());
		}
		System.out.println(set.size());

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan HashSet<String> set = new HashSet<>(); set new HashSet<>() for(int i = 0;i < n; ++i){
			set.add(scan.next());
		} int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
			set.add(scan.next());
		} {
			set.add(scan.next());
		} set.add(scan.next()) set.add set scan.next() scan.next scan 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)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		HashSet<String> set = new HashSet<>();
		for(int i = 0;i < n; ++i){
			set.add(scan.next());
		}
		System.out.println(set.size());

	}

} public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		HashSet<String> set = new HashSet<>();
		for(int i = 0;i < n; ++i){
			set.add(scan.next());
		}
		System.out.println(set.size());

	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		HashSet<String> set = new HashSet<>();
		for(int i = 0;i < n; ++i){
			set.add(scan.next());
		}
		System.out.println(set.size());

	}

}
//end