import java.util.*;
import javax.lang.model.util.ElementScanner6;
//import java.lang.Math;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        //String s = sc.next();

        // 処理
        HashSet<String> s = new HashSet<>();
        for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        }
        int out = s.size();

        // 出力
        System.out.println(out);
    }
} import java.util.*; util.* java import javax.lang.model.util.ElementScanner6; ElementScanner6 javax.lang.model.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        //String s = sc.next();

        // 処理
        HashSet<String> s = new HashSet<>();
        for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        }
        int out = s.size();

        // 出力
        System.out.println(out);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        //String s = sc.next();

        // 処理
        HashSet<String> s = new HashSet<>();
        for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        }
        int out = s.size();

        // 出力
        System.out.println(out);
    } main {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        //String s = sc.next();

        // 処理
        HashSet<String> s = new HashSet<>();
        for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        }
        int out = s.size();

        // 出力
        System.out.println(out);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc HashSet<String> s = new HashSet<>(); s new HashSet<>() for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String a = sc.next();
            s.add(a);
        } {
            String a = sc.next();
            s.add(a);
        } String a = sc.next(); a sc.next() sc.next sc s.add(a) s.add s a int out = s.size(); out s.size() s.size s System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        //String s = sc.next();

        // 処理
        HashSet<String> s = new HashSet<>();
        for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        }
        int out = s.size();

        // 出力
        System.out.println(out);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        //String s = sc.next();

        // 処理
        HashSet<String> s = new HashSet<>();
        for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        }
        int out = s.size();

        // 出力
        System.out.println(out);
    }
} Main
import java.util.*;
import javax.lang.model.util.ElementScanner6;
//import java.lang.Math;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        //String s = sc.next();

        // 処理
        HashSet<String> s = new HashSet<>();
        for (int i = 0; i < n; i++){
            String a = sc.next();
            s.add(a);
        }
        int out = s.size();

        // 出力
        System.out.println(out);
    }
}