import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] Sz = new String[N];
        for (int i = 0; i < N; i++){
            Sz[i] = sc.next();
        }

        HashSet<String> set = new HashSet<String>();
        for (int i = 0; i < N; i++){
            set.add(Sz[i]);
        }
        System.out.println(set.size());
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] Sz = new String[N];
        for (int i = 0; i < N; i++){
            Sz[i] = sc.next();
        }

        HashSet<String> set = new HashSet<String>();
        for (int i = 0; i < N; i++){
            set.add(Sz[i]);
        }
        System.out.println(set.size());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] Sz = new String[N];
        for (int i = 0; i < N; i++){
            Sz[i] = sc.next();
        }

        HashSet<String> set = new HashSet<String>();
        for (int i = 0; i < N; i++){
            set.add(Sz[i]);
        }
        System.out.println(set.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] Sz = new String[N];
        for (int i = 0; i < N; i++){
            Sz[i] = sc.next();
        }

        HashSet<String> set = new HashSet<String>();
        for (int i = 0; i < N; i++){
            set.add(Sz[i]);
        }
        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 String[] Sz = new String[N]; Sz new String[N] N for (int i = 0; i < N; i++){
            Sz[i] = sc.next();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            Sz[i] = sc.next();
        } {
            Sz[i] = sc.next();
        } Sz[i] = sc.next() Sz[i] Sz i sc.next() sc.next sc HashSet<String> set = new HashSet<String>(); set new HashSet<String>() for (int i = 0; i < N; i++){
            set.add(Sz[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            set.add(Sz[i]);
        } {
            set.add(Sz[i]);
        } set.add(Sz[i]) set.add set Sz[i] Sz i 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 sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] Sz = new String[N];
        for (int i = 0; i < N; i++){
            Sz[i] = sc.next();
        }

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

        HashSet<String> set = new HashSet<String>();
        for (int i = 0; i < N; i++){
            set.add(Sz[i]);
        }
        System.out.println(set.size());
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] Sz = new String[N];
        for (int i = 0; i < N; i++){
            Sz[i] = sc.next();
        }

        HashSet<String> set = new HashSet<String>();
        for (int i = 0; i < N; i++){
            set.add(Sz[i]);
        }
        System.out.println(set.size());
    }
}