import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> s = new ArrayList<>();


        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        List<String> list = new ArrayList<>(new HashSet<>(s));

        System.out.println(list.size());
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> s = new ArrayList<>();


        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        List<String> list = new ArrayList<>(new HashSet<>(s));

        System.out.println(list.size());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> s = new ArrayList<>();


        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        List<String> list = new ArrayList<>(new HashSet<>(s));

        System.out.println(list.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> s = new ArrayList<>();


        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        List<String> list = new ArrayList<>(new HashSet<>(s));

        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 List<String> s = new ArrayList<>(); s new ArrayList<>() for (int i = 0; i < n; i++) {
            s.add(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            s.add(sc.next());
        } {
            s.add(sc.next());
        } s.add(sc.next()) s.add s sc.next() sc.next sc List<String> list = new ArrayList<>(new HashSet<>(s)); list new ArrayList<>(new HashSet<>(s)) System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> s = new ArrayList<>();


        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        List<String> list = new ArrayList<>(new HashSet<>(s));

        System.out.println(list.size());
    }
}