/* 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
	{
		Set<String> hash_Set = new HashSet<String>(); 
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		String s;
		for(int i=0;i<n;i++) {
		    s = sc.next();
		    hash_Set.add(s);
		}
    //   Object[] objects = hash_Set.toArray(); 
  
    //     // Printing array of objects 
    //     for (Object obj : objects) 
    //         System.out.println(obj); 
    System.out.println(hash_Set.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
	{
		Set<String> hash_Set = new HashSet<String>(); 
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		String s;
		for(int i=0;i<n;i++) {
		    s = sc.next();
		    hash_Set.add(s);
		}
    //   Object[] objects = hash_Set.toArray(); 
  
    //     // Printing array of objects 
    //     for (Object obj : objects) 
    //         System.out.println(obj); 
    System.out.println(hash_Set.size());
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Set<String> hash_Set = new HashSet<String>(); 
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		String s;
		for(int i=0;i<n;i++) {
		    s = sc.next();
		    hash_Set.add(s);
		}
    //   Object[] objects = hash_Set.toArray(); 
  
    //     // Printing array of objects 
    //     for (Object obj : objects) 
    //         System.out.println(obj); 
    System.out.println(hash_Set.size());
	} main {
		Set<String> hash_Set = new HashSet<String>(); 
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		String s;
		for(int i=0;i<n;i++) {
		    s = sc.next();
		    hash_Set.add(s);
		}
    //   Object[] objects = hash_Set.toArray(); 
  
    //     // Printing array of objects 
    //     for (Object obj : objects) 
    //         System.out.println(obj); 
    System.out.println(hash_Set.size());
	} Set<String> hash_Set = new HashSet<String>(); hash_Set new HashSet<String>() int n; n Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc String s; s for(int i=0;i<n;i++) {
		    s = sc.next();
		    hash_Set.add(s);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
		    s = sc.next();
		    hash_Set.add(s);
		} {
		    s = sc.next();
		    hash_Set.add(s);
		} s = sc.next() s sc.next() sc.next sc hash_Set.add(s) hash_Set.add hash_Set s System.out.println(hash_Set.size()) System.out.println System.out System System.out hash_Set.size() hash_Set.size hash_Set 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
	{
		Set<String> hash_Set = new HashSet<String>(); 
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		String s;
		for(int i=0;i<n;i++) {
		    s = sc.next();
		    hash_Set.add(s);
		}
    //   Object[] objects = hash_Set.toArray(); 
  
    //     // Printing array of objects 
    //     for (Object obj : objects) 
    //         System.out.println(obj); 
    System.out.println(hash_Set.size());
	}
}
