import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

class Main
{
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        for(int i=0;i<a;i++)
        {
            map.putIfAbsent(sc.next(),1);

        }
        System.out.print(map.size());


    }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util class Main
{
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        for(int i=0;i<a;i++)
        {
            map.putIfAbsent(sc.next(),1);

        }
        System.out.print(map.size());


    }
} Main public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        for(int i=0;i<a;i++)
        {
            map.putIfAbsent(sc.next(),1);

        }
        System.out.print(map.size());


    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        for(int i=0;i<a;i++)
        {
            map.putIfAbsent(sc.next(),1);

        }
        System.out.print(map.size());


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc Map<String,Integer> map = new HashMap<>(); map new HashMap<>() for(int i=0;i<a;i++)
        {
            map.putIfAbsent(sc.next(),1);

        } int i=0; int i=0; i 0 i<a i a i++ i++ i {
            map.putIfAbsent(sc.next(),1);

        } {
            map.putIfAbsent(sc.next(),1);

        } map.putIfAbsent(sc.next(),1) map.putIfAbsent map sc.next() sc.next sc 1 System.out.print(map.size()) System.out.print System.out System System.out map.size() map.size map String args[] args
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

class Main
{
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        for(int i=0;i<a;i++)
        {
            map.putIfAbsent(sc.next(),1);

        }
        System.out.print(map.size());


    }
}