import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        String blank = sc.nextLine();
        for (int i=0; i<n; i++) {
          String str = sc.nextLine();
          set.add(str);
        }
        System.out.println(set.size());
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        String blank = sc.nextLine();
        for (int i=0; i<n; i++) {
          String str = sc.nextLine();
          set.add(str);
        }
        System.out.println(set.size());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        String blank = sc.nextLine();
        for (int i=0; i<n; i++) {
          String str = sc.nextLine();
          set.add(str);
        }
        System.out.println(set.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        String blank = sc.nextLine();
        for (int i=0; i<n; i++) {
          String str = sc.nextLine();
          set.add(str);
        }
        System.out.println(set.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Set<String> set = new HashSet<>(); set new HashSet<>() String blank = sc.nextLine(); blank sc.nextLine() sc.nextLine sc for (int i=0; i<n; i++) {
          String str = sc.nextLine();
          set.add(str);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
          String str = sc.nextLine();
          set.add(str);
        } {
          String str = sc.nextLine();
          set.add(str);
        } String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc set.add(str) set.add set str 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 sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        String blank = sc.nextLine();
        for (int i=0; i<n; i++) {
          String str = sc.nextLine();
          set.add(str);
        }
        System.out.println(set.size());
    }
}
