

import java.util.HashSet;
import java.util.Scanner;

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


import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n=scanner.nextInt();
        String string=scanner.nextLine();
        HashSet set=new HashSet();
        for (int i = 0; i <n ; i++) {
           string=scanner.nextLine();
            set.add(string);
        }
        System.out.println(set.size());
    }
}
