/******************************************************************************

                            Online Java Compiler.
                Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.

*******************************************************************************/

import java.util.*;
public class Main
{
	public static void main(String args[]) throws Exception
	{
	    try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {}
	    


	}
}
 import java.util.*; util.* java public class Main
{
	public static void main(String args[]) throws Exception
	{
	    try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {}
	    


	}
} Main public static void main(String args[]) throws Exception
	{
	    try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {}
	    


	} main {
	    try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {}
	    


	} try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {} catch(Exception e)
	    {} Exception e {} {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc String str[]=new String[2*100000]; str new String[2*100000] 2*100000 2 100000 for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
		          str[i]=sc.next();
		} {
		          str[i]=sc.next();
		} str[i]=sc.next() str[i] str i sc.next() sc.next sc Set<String> set=new HashSet<>(Arrays.asList(str)); set new HashSet<>(Arrays.asList(str)) set.remove(null) set.remove set null 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[]) throws Exception
	{
	    try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {}
	    


	}
} public class Main
{
	public static void main(String args[]) throws Exception
	{
	    try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {}
	    


	}
} Main
/******************************************************************************

                            Online Java Compiler.
                Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.

*******************************************************************************/

import java.util.*;
public class Main
{
	public static void main(String args[]) throws Exception
	{
	    try
	    {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String str[]=new String[2*100000];
		for(int i=0;i<n;i++)
		{
		          str[i]=sc.next();
		}
		Set<String> set=new HashSet<>(Arrays.asList(str));
		set.remove(null);
		System.out.println(set.size());
	    }
	    catch(Exception e)
	    {}
	    


	}
}

