import java.util.HashSet;
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    }
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    } main {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] arr=new String[n]; arr new String[n] n for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        } int i = 0; int i = 0; i 0 i <arr.length i arr.length arr arr.length i++ i++ i {
            arr[i]=sc.next();
        } {
            arr[i]=sc.next();
        } arr[i]=sc.next() arr[i] arr i sc.next() sc.next sc HashSet<String> hs = new HashSet<String>(); hs new HashSet<String>() for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        } {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        } hs.add(arr[i]) hs.add hs arr[i] arr i System.out.println(hs.size()) System.out.println System.out System System.out hs.size() hs.size hs String[] args args public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    }
}
