import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<String> box = new ArrayList<>();
        int amount = sc.nextInt();
        String each = null;
        for (int i = 0; i < amount; i++) {
            box.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
        System.out.println(list.size());
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.LinkedHashSet; LinkedHashSet java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<String> box = new ArrayList<>();
        int amount = sc.nextInt();
        String each = null;
        for (int i = 0; i < amount; i++) {
            box.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
        System.out.println(list.size());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<String> box = new ArrayList<>();
        int amount = sc.nextInt();
        String each = null;
        for (int i = 0; i < amount; i++) {
            box.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
        System.out.println(list.size());
    } main {
        Scanner sc = new Scanner(System.in);
        List<String> box = new ArrayList<>();
        int amount = sc.nextInt();
        String each = null;
        for (int i = 0; i < amount; i++) {
            box.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
        System.out.println(list.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<String> box = new ArrayList<>(); box new ArrayList<>() int amount = sc.nextInt(); amount sc.nextInt() sc.nextInt sc String each = null; each null for (int i = 0; i < amount; i++) {
            box.add(sc.next());
        } int i = 0; int i = 0; i 0 i < amount i amount i++ i++ i {
            box.add(sc.next());
        } {
            box.add(sc.next());
        } box.add(sc.next()) box.add box sc.next() sc.next sc List<String> list = new ArrayList<String>(new LinkedHashSet<>(box)); list new ArrayList<String>(new LinkedHashSet<>(box)) 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);
        List<String> box = new ArrayList<>();
        int amount = sc.nextInt();
        String each = null;
        for (int i = 0; i < amount; i++) {
            box.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
        System.out.println(list.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<String> box = new ArrayList<>();
        int amount = sc.nextInt();
        String each = null;
        for (int i = 0; i < amount; i++) {
            box.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new LinkedHashSet<>(box));
        System.out.println(list.size());
    }
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Scanner;

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