import java.util.Scanner;
import java.util.*;


public class Main {
    
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        Set<String> prize = new HashSet<String>();
        int times = scanner.nextInt();

        for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        }

    System.out.println(prize.size());
    }
} import java.util.Scanner; Scanner java.util import java.util.*; util.* java public class Main {
    
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        Set<String> prize = new HashSet<String>();
        int times = scanner.nextInt();

        for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        }

    System.out.println(prize.size());
    }
} Main public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        Set<String> prize = new HashSet<String>();
        int times = scanner.nextInt();

        for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        }

    System.out.println(prize.size());
    } main {

        Scanner scanner = new Scanner(System.in);

        Set<String> prize = new HashSet<String>();
        int times = scanner.nextInt();

        for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        }

    System.out.println(prize.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Set<String> prize = new HashSet<String>(); prize new HashSet<String>() int times = scanner.nextInt(); times scanner.nextInt() scanner.nextInt scanner for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        } int i = 0; int i = 0; i 0 i < times i times i++ i++ i {
            String str = scanner.next();
            prize.add(str);
        } {
            String str = scanner.next();
            prize.add(str);
        } String str = scanner.next(); str scanner.next() scanner.next scanner prize.add(str) prize.add prize str System.out.println(prize.size()) System.out.println System.out System System.out prize.size() prize.size prize String[] args args public class Main {
    
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        Set<String> prize = new HashSet<String>();
        int times = scanner.nextInt();

        for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        }

    System.out.println(prize.size());
    }
} public class Main {
    
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        Set<String> prize = new HashSet<String>();
        int times = scanner.nextInt();

        for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        }

    System.out.println(prize.size());
    }
} Main
import java.util.Scanner;
import java.util.*;


public class Main {
    
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        Set<String> prize = new HashSet<String>();
        int times = scanner.nextInt();

        for(int i = 0; i < times; i++) {
            String str = scanner.next();
            prize.add(str);
        }

    System.out.println(prize.size());
    }
}