import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> list = new LinkedHashSet<String>();

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

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

        for (int i = 0; i < N; i++) {
            String a = sc.next();
            list.add(a);
        }
        System.out.println(list.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> list = new LinkedHashSet<String>();

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

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

        for (int i = 0; i < N; i++) {
            String a = sc.next();
            list.add(a);
        }
        System.out.println(list.size());
    }
} Main
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> list = new LinkedHashSet<String>();

        for (int i = 0; i < N; i++) {
            String a = sc.next();
            list.add(a);
        }
        System.out.println(list.size());
    }
}