import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.*;
public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        List<String> listA = new ArrayList<String>();
        for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        }
        List<String> listB = listA.stream().distinct().collect(Collectors.toList());

       // System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
            }
        }
 import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.stream.Collectors; Collectors java.util.stream import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        List<String> listA = new ArrayList<String>();
        for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        }
        List<String> listB = listA.stream().distinct().collect(Collectors.toList());

       // System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
            }
        } Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        List<String> listA = new ArrayList<String>();
        for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        }
        List<String> listB = listA.stream().distinct().collect(Collectors.toList());

       // System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
            } main {

        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        List<String> listA = new ArrayList<String>();
        for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        }
        List<String> listB = listA.stream().distinct().collect(Collectors.toList());

       // System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
            } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan List<String> listA = new ArrayList<String>(); listA new ArrayList<String>() for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        } int i=0; int i=0; i 0 i<a i a i++ i++ i {
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        } {
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        } String n=scan.next(); n scan.next() scan.next scan listA.add(n) listA.add listA n List<String> listB = listA.stream().distinct().collect(Collectors.toList()); listB listA.stream().distinct().collect(Collectors.toList()) listA.stream().distinct().collect listA.stream().distinct() listA.stream().distinct listA.stream() listA.stream listA Collectors.toList() Collectors.toList Collectors System.out.println(listB.size()) System.out.println System.out System System.out listB.size() listB.size listB String[] args args public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        List<String> listA = new ArrayList<String>();
        for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        }
        List<String> listB = listA.stream().distinct().collect(Collectors.toList());

       // System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
            }
        } public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        List<String> listA = new ArrayList<String>();
        for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        }
        List<String> listB = listA.stream().distinct().collect(Collectors.toList());

       // System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
            }
        } Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.*;
public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        List<String> listA = new ArrayList<String>();
        for(int i=0;i<a;i++){
            String n=scan.next();
            //System.out.println(n);
            listA.add(n);
            //System.out.println("ListA = " + listA);
        }
        List<String> listB = listA.stream().distinct().collect(Collectors.toList());

       // System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
            }
        }

