import java.util.*;
import java.math.*;
import java.io.*;

public class Main{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		HashMap<String, Integer> mp = new HashMap<>();
		String meh = in.nextLine();
		for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		}
		System.out.println(mp.size());
	}
} import java.util.*; util.* java import java.math.*; math.* java import java.io.*; io.* java public class Main{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		HashMap<String, Integer> mp = new HashMap<>();
		String meh = in.nextLine();
		for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		}
		System.out.println(mp.size());
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		HashMap<String, Integer> mp = new HashMap<>();
		String meh = in.nextLine();
		for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		}
		System.out.println(mp.size());
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		HashMap<String, Integer> mp = new HashMap<>();
		String meh = in.nextLine();
		for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		}
		System.out.println(mp.size());
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in HashMap<String, Integer> mp = new HashMap<>(); mp new HashMap<>() String meh = in.nextLine(); meh in.nextLine() in.nextLine in for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		} int qq=1; int qq=1; qq 1 qq<=n qq n qq++ qq++ qq {
			String a = in.nextLine();
			mp.put(a, 1);
		} {
			String a = in.nextLine();
			mp.put(a, 1);
		} String a = in.nextLine(); a in.nextLine() in.nextLine in mp.put(a, 1) mp.put mp a 1 System.out.println(mp.size()) System.out.println System.out System System.out mp.size() mp.size mp String[] args args public class Main{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		HashMap<String, Integer> mp = new HashMap<>();
		String meh = in.nextLine();
		for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		}
		System.out.println(mp.size());
	}
} public class Main{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		HashMap<String, Integer> mp = new HashMap<>();
		String meh = in.nextLine();
		for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		}
		System.out.println(mp.size());
	}
} Main
import java.util.*;
import java.math.*;
import java.io.*;

public class Main{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		HashMap<String, Integer> mp = new HashMap<>();
		String meh = in.nextLine();
		for(int qq=1; qq<=n; qq++){
			String a = in.nextLine();
			mp.put(a, 1);
		}
		System.out.println(mp.size());
	}
}