import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        String[] S = new String[N];
        Set<String> types = new HashSet<String>();

        for (int i = 0; i < N; i++) {
            S[i] = input.next();
            types.add(S[i]);
        }

        System.out.println(types.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        String[] S = new String[N];
        Set<String> types = new HashSet<String>();

        for (int i = 0; i < N; i++) {
            S[i] = input.next();
            types.add(S[i]);
        }

        System.out.println(types.size());
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        String[] S = new String[N];
        Set<String> types = new HashSet<String>();

        for (int i = 0; i < N; i++) {
            S[i] = input.next();
            types.add(S[i]);
        }

        System.out.println(types.size());
    } main {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        String[] S = new String[N];
        Set<String> types = new HashSet<String>();

        for (int i = 0; i < N; i++) {
            S[i] = input.next();
            types.add(S[i]);
        }

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

        for (int i = 0; i < N; i++) {
            S[i] = input.next();
            types.add(S[i]);
        }

        System.out.println(types.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        String[] S = new String[N];
        Set<String> types = new HashSet<String>();

        for (int i = 0; i < N; i++) {
            S[i] = input.next();
            types.add(S[i]);
        }

        System.out.println(types.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        String[] S = new String[N];
        Set<String> types = new HashSet<String>();

        for (int i = 0; i < N; i++) {
            S[i] = input.next();
            types.add(S[i]);
        }

        System.out.println(types.size());
    }
}
