import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
 
class Main{
 
    public static void main(String[] args){
 
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0; i<n; i++){
            list.add(scanner.next());
        }
        scanner.close();
        Map<String, Integer> map = new HashMap<>();
        for (String val : list) {
           map.put(val, 0);
        }
        System.out.println(map.size());
    }
 
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Map; Map java.util import java.util.HashMap; HashMap java.util class Main{
 
    public static void main(String[] args){
 
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0; i<n; i++){
            list.add(scanner.next());
        }
        scanner.close();
        Map<String, Integer> map = new HashMap<>();
        for (String val : list) {
           map.put(val, 0);
        }
        System.out.println(map.size());
    }
 
} Main public static void main(String[] args){
 
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0; i<n; i++){
            list.add(scanner.next());
        }
        scanner.close();
        Map<String, Integer> map = new HashMap<>();
        for (String val : list) {
           map.put(val, 0);
        }
        System.out.println(map.size());
    } main {
 
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0; i<n; i++){
            list.add(scanner.next());
        }
        scanner.close();
        Map<String, Integer> map = new HashMap<>();
        for (String val : list) {
           map.put(val, 0);
        }
        System.out.println(map.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner List<String> list = new ArrayList<>(); list new ArrayList<>() for(int i=0; i<n; i++){
            list.add(scanner.next());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            list.add(scanner.next());
        } {
            list.add(scanner.next());
        } list.add(scanner.next()) list.add list scanner.next() scanner.next scanner scanner.close() scanner.close scanner Map<String, Integer> map = new HashMap<>(); map new HashMap<>() for (String val : list) {
           map.put(val, 0);
        } String val list {
           map.put(val, 0);
        } {
           map.put(val, 0);
        } map.put(val, 0) map.put map val 0 System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
 
class Main{
 
    public static void main(String[] args){
 
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        List<String> list = new ArrayList<>();
        for(int i=0; i<n; i++){
            list.add(scanner.next());
        }
        scanner.close();
        Map<String, Integer> map = new HashMap<>();
        for (String val : list) {
           map.put(val, 0);
        }
        System.out.println(map.size());
    }
 
}