import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        HashSet<String> PrizeSet = new HashSet<>();
        int num = sc.nextInt();
        for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        }
        System.out.println(PrizeSet.size());
    }
} import java.util.ArrayList; ArrayList java.util import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        HashSet<String> PrizeSet = new HashSet<>();
        int num = sc.nextInt();
        for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        }
        System.out.println(PrizeSet.size());
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        HashSet<String> PrizeSet = new HashSet<>();
        int num = sc.nextInt();
        for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        }
        System.out.println(PrizeSet.size());
    } main {
        Scanner sc = new Scanner(System.in);
        HashSet<String> PrizeSet = new HashSet<>();
        int num = sc.nextInt();
        for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        }
        System.out.println(PrizeSet.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) HashSet<String> PrizeSet = new HashSet<>(); PrizeSet new HashSet<>() int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            String Prize = sc.next();
            PrizeSet.add(Prize);
        } {
            String Prize = sc.next();
            PrizeSet.add(Prize);
        } String Prize = sc.next(); Prize sc.next() sc.next sc PrizeSet.add(Prize) PrizeSet.add PrizeSet Prize System.out.println(PrizeSet.size()) System.out.println System.out System System.out PrizeSet.size() PrizeSet.size PrizeSet String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        HashSet<String> PrizeSet = new HashSet<>();
        int num = sc.nextInt();
        for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        }
        System.out.println(PrizeSet.size());
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        HashSet<String> PrizeSet = new HashSet<>();
        int num = sc.nextInt();
        for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        }
        System.out.println(PrizeSet.size());
    }
} Main
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        HashSet<String> PrizeSet = new HashSet<>();
        int num = sc.nextInt();
        for(int i = 0;i < num;i++){
            String Prize = sc.next();
            PrizeSet.add(Prize);
        }
        System.out.println(PrizeSet.size());
    }
}