import java.util.*;

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

public class Main {
     public static void main(String... args) {
     	Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        Set<String> items = new HashSet<>();
       for (int i = 0; i < n; i++) {
         items.add(input.next());
       }
       
       System.out.println(items.size());
    }
}