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

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

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