import java.util.*;

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<String> ary = new ArrayList<>();

        for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new HashSet<>(ary));
        System.out.print(list.size());
    }
}
 import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<String> ary = new ArrayList<>();

        for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new HashSet<>(ary));
        System.out.print(list.size());
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<String> ary = new ArrayList<>();

        for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new HashSet<>(ary));
        System.out.print(list.size());
    } main {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<String> ary = new ArrayList<>();

        for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new HashSet<>(ary));
        System.out.print(list.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ArrayList<String> ary = new ArrayList<>(); ary new ArrayList<>() for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        } int i = 1; int i = 1; i 1 i < n + 1 i n + 1 n 1 i++ i++ i {
            ary.add(sc.next());
        } {
            ary.add(sc.next());
        } ary.add(sc.next()) ary.add ary sc.next() sc.next sc List<String> list = new ArrayList<String>(new HashSet<>(ary)); list new ArrayList<String>(new HashSet<>(ary)) System.out.print(list.size()) System.out.print 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 = Integer.parseInt(sc.next());
        ArrayList<String> ary = new ArrayList<>();

        for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new HashSet<>(ary));
        System.out.print(list.size());
    }
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<String> ary = new ArrayList<>();

        for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new HashSet<>(ary));
        System.out.print(list.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<String> ary = new ArrayList<>();

        for (int i = 1; i < n + 1; i++) {
            ary.add(sc.next());
        }
        List<String> list = new ArrayList<String>(new HashSet<>(ary));
        System.out.print(list.size());
    }
}

