import java.util.*;
class Main
{
    public static void main(String args[])
    {
        Scanner ob=new Scanner(System.in);
        int n =ob.nextInt();
        ob.nextLine();
        HashSet<String> set = new HashSet<>();
        while(n-->0)
        set.add(ob.nextLine());
        System.out.println(set.size());

    }
} import java.util.*; util.* java class Main
{
    public static void main(String args[])
    {
        Scanner ob=new Scanner(System.in);
        int n =ob.nextInt();
        ob.nextLine();
        HashSet<String> set = new HashSet<>();
        while(n-->0)
        set.add(ob.nextLine());
        System.out.println(set.size());

    }
} Main public static void main(String args[])
    {
        Scanner ob=new Scanner(System.in);
        int n =ob.nextInt();
        ob.nextLine();
        HashSet<String> set = new HashSet<>();
        while(n-->0)
        set.add(ob.nextLine());
        System.out.println(set.size());

    } main {
        Scanner ob=new Scanner(System.in);
        int n =ob.nextInt();
        ob.nextLine();
        HashSet<String> set = new HashSet<>();
        while(n-->0)
        set.add(ob.nextLine());
        System.out.println(set.size());

    } Scanner ob=new Scanner(System.in); ob new Scanner(System.in) int n =ob.nextInt(); n ob.nextInt() ob.nextInt ob ob.nextLine() ob.nextLine ob HashSet<String> set = new HashSet<>(); set new HashSet<>() while(n-->0)
        set.add(ob.nextLine()); n-->0 n-- n 0 set.add(ob.nextLine()) set.add set ob.nextLine() ob.nextLine ob System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String args[] args
import java.util.*;
class Main
{
    public static void main(String args[])
    {
        Scanner ob=new Scanner(System.in);
        int n =ob.nextInt();
        ob.nextLine();
        HashSet<String> set = new HashSet<>();
        while(n-->0)
        set.add(ob.nextLine());
        System.out.println(set.size());

    }
}