import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        TreeSet<String> set=new TreeSet<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        }
        pw.println(set.size());
        pw.flush();
        pw.close();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        TreeSet<String> set=new TreeSet<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        }
        pw.println(set.size());
        pw.flush();
        pw.close();
    }
} Main public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        TreeSet<String> set=new TreeSet<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        }
        pw.println(set.size());
        pw.flush();
        pw.close();
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        TreeSet<String> set=new TreeSet<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        }
        pw.println(set.size());
        pw.flush();
        pw.close();
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter pw=new PrintWriter(System.out); pw new PrintWriter(System.out) int n=Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br TreeSet<String> set=new TreeSet<>(); set new TreeSet<>() for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String s=br.readLine();
            set.add(s);
        } {
            String s=br.readLine();
            set.add(s);
        } String s=br.readLine(); s br.readLine() br.readLine br set.add(s) set.add set s pw.println(set.size()) pw.println pw set.size() set.size set pw.flush() pw.flush pw pw.close() pw.close pw String args[] args public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        TreeSet<String> set=new TreeSet<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        }
        pw.println(set.size());
        pw.flush();
        pw.close();
    }
} public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        TreeSet<String> set=new TreeSet<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        }
        pw.println(set.size());
        pw.flush();
        pw.close();
    }
} Main
import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        TreeSet<String> set=new TreeSet<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            set.add(s);
        }
        pw.println(set.size());
        pw.flush();
        pw.close();
    }
}