import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        Set<String> set = new HashSet<>();
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++){
            String s = scanner.next();
            set.add(s);
        }
        System.out.println(set.size());
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        Set<String> set = new HashSet<>();
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++){
            String s = scanner.next();
            set.add(s);
        }
        System.out.println(set.size());
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        Set<String> set = new HashSet<>();
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++){
            String s = scanner.next();
            set.add(s);
        }
        System.out.println(set.size());
    } main {
        Scanner scanner = new Scanner(System.in);
        Set<String> set = new HashSet<>();
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++){
            String s = scanner.next();
            set.add(s);
        }
        System.out.println(set.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Set<String> set = new HashSet<>(); set new HashSet<>() int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for(int i = 0; i < n; i++){
            String s = scanner.next();
            set.add(s);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String s = scanner.next();
            set.add(s);
        } {
            String s = scanner.next();
            set.add(s);
        } String s = scanner.next(); s scanner.next() scanner.next scanner set.add(s) set.add set s System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        Set<String> set = new HashSet<>();
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++){
            String s = scanner.next();
            set.add(s);
        }
        System.out.println(set.size());
    }
}
