import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Main
{
	public static void main(String[] Arguments) throws IOException 
	{
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(BR.readLine()); HashSet<String> Items = new HashSet<>();
		for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		}
		System.out.println(Items.size());
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashSet; HashSet java.util public class Main
{
	public static void main(String[] Arguments) throws IOException 
	{
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(BR.readLine()); HashSet<String> Items = new HashSet<>();
		for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		}
		System.out.println(Items.size());
	}
} Main public static void main(String[] Arguments) throws IOException 
	{
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(BR.readLine()); HashSet<String> Items = new HashSet<>();
		for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		}
		System.out.println(Items.size());
	} main {
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(BR.readLine()); HashSet<String> Items = new HashSet<>();
		for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		}
		System.out.println(Items.size());
	} BufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); BR new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(BR.readLine()); N Integer.parseInt(BR.readLine()) Integer.parseInt Integer BR.readLine() BR.readLine BR HashSet<String> Items = new HashSet<>(); Items new HashSet<>() for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		} ; N > 0 N 0 N-- N-- N {
			Items.add(BR.readLine());
		} {
			Items.add(BR.readLine());
		} Items.add(BR.readLine()) Items.add Items BR.readLine() BR.readLine BR System.out.println(Items.size()) System.out.println System.out System System.out Items.size() Items.size Items String[] Arguments Arguments public class Main
{
	public static void main(String[] Arguments) throws IOException 
	{
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(BR.readLine()); HashSet<String> Items = new HashSet<>();
		for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		}
		System.out.println(Items.size());
	}
} public class Main
{
	public static void main(String[] Arguments) throws IOException 
	{
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(BR.readLine()); HashSet<String> Items = new HashSet<>();
		for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		}
		System.out.println(Items.size());
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;

public class Main
{
	public static void main(String[] Arguments) throws IOException 
	{
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(BR.readLine()); HashSet<String> Items = new HashSet<>();
		for (; N > 0; N--)
		{
			Items.add(BR.readLine());
		}
		System.out.println(Items.size());
	}
}
