import java.util.HashMap;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        // input
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] s = new String[n];
        HashMap<String, String> h = new HashMap<String, String>();
        for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        }
        int ans = h.size();
        System.out.println(ans);
    }
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        // input
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] s = new String[n];
        HashMap<String, String> h = new HashMap<String, String>();
        for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        }
        int ans = h.size();
        System.out.println(ans);
    }
} Main public static void main(String[] args) {

        // input
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] s = new String[n];
        HashMap<String, String> h = new HashMap<String, String>();
        for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        }
        int ans = h.size();
        System.out.println(ans);
    } main {

        // input
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] s = new String[n];
        HashMap<String, String> h = new HashMap<String, String>();
        for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        }
        int ans = h.size();
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] s = new String[n]; s new String[n] n HashMap<String, String> h = new HashMap<String, String>(); h new HashMap<String, String>() for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        } {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        } s[i] = sc.nextLine() s[i] s i sc.nextLine() sc.nextLine sc h.put(s[i], "a") h.put h s[i] s i "a" int ans = h.size(); ans h.size() h.size h System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {

        // input
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] s = new String[n];
        HashMap<String, String> h = new HashMap<String, String>();
        for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        }
        int ans = h.size();
        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {

        // input
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] s = new String[n];
        HashMap<String, String> h = new HashMap<String, String>();
        for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        }
        int ans = h.size();
        System.out.println(ans);
    }
} Main
import java.util.HashMap;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        // input
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        String[] s = new String[n];
        HashMap<String, String> h = new HashMap<String, String>();
        for(int i=0; i<n; i++) {
            s[i] = sc.nextLine();
            h.put(s[i], "a");
        }
        int ans = h.size();
        System.out.println(ans);
    }
}
