/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s=new Scanner(System.in);
	    
	    HashMap<String , Integer> map=new HashMap<>();
	    int n=s.nextInt();
	    for(int i=0;i<n;i++)
	    {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    }
	    System.out.println(map.size());
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s=new Scanner(System.in);
	    
	    HashMap<String , Integer> map=new HashMap<>();
	    int n=s.nextInt();
	    for(int i=0;i<n;i++)
	    {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    }
	    System.out.println(map.size());
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s=new Scanner(System.in);
	    
	    HashMap<String , Integer> map=new HashMap<>();
	    int n=s.nextInt();
	    for(int i=0;i<n;i++)
	    {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    }
	    System.out.println(map.size());
	} main {
		// your code goes here
		Scanner s=new Scanner(System.in);
	    
	    HashMap<String , Integer> map=new HashMap<>();
	    int n=s.nextInt();
	    for(int i=0;i<n;i++)
	    {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    }
	    System.out.println(map.size());
	} Scanner s=new Scanner(System.in); s new Scanner(System.in) HashMap<String , Integer> map=new HashMap<>(); map new HashMap<>() int n=s.nextInt(); n s.nextInt() s.nextInt s for(int i=0;i<n;i++)
	    {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    } {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    } String ans=s.next(); ans s.next() s.next s if(!map.containsKey(ans))
	        map.put(ans,1); !map.containsKey(ans) map.containsKey(ans) map.containsKey map ans map.put(ans,1) map.put map ans 1 System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args
/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s=new Scanner(System.in);
	    
	    HashMap<String , Integer> map=new HashMap<>();
	    int n=s.nextInt();
	    for(int i=0;i<n;i++)
	    {
	        String ans=s.next();
	        if(!map.containsKey(ans))
	        map.put(ans,1);
	    }
	    System.out.println(map.size());
	}
}
