import java.util.HashMap;
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		HashMap<String, String> map = new HashMap<String, String>();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String str= sc.nextLine();
		for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		}
		sc.close();

		System.out.println(map.size());
	}
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		HashMap<String, String> map = new HashMap<String, String>();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String str= sc.nextLine();
		for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		}
		sc.close();

		System.out.println(map.size());
	}
} Main public static void main(String[] args)
	{
		HashMap<String, String> map = new HashMap<String, String>();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String str= sc.nextLine();
		for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		}
		sc.close();

		System.out.println(map.size());
	} main {
		HashMap<String, String> map = new HashMap<String, String>();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String str= sc.nextLine();
		for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		}
		sc.close();

		System.out.println(map.size());
	} HashMap<String, String> map = new HashMap<String, String>(); map new HashMap<String, String>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String str= sc.nextLine(); str sc.nextLine() sc.nextLine sc for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			map.put(sc.nextLine(),"");
		} {
			map.put(sc.nextLine(),"");
		} map.put(sc.nextLine(),"") map.put map sc.nextLine() sc.nextLine sc "" sc.close() sc.close sc System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args public class Main
{
	public static void main(String[] args)
	{
		HashMap<String, String> map = new HashMap<String, String>();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String str= sc.nextLine();
		for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		}
		sc.close();

		System.out.println(map.size());
	}
} public class Main
{
	public static void main(String[] args)
	{
		HashMap<String, String> map = new HashMap<String, String>();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String str= sc.nextLine();
		for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		}
		sc.close();

		System.out.println(map.size());
	}
} Main
import java.util.HashMap;
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		HashMap<String, String> map = new HashMap<String, String>();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String str= sc.nextLine();
		for (int i=0; i<n; i++) {
			map.put(sc.nextLine(),"");
		}
		sc.close();

		System.out.println(map.size());
	}
}
