import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        HashMap map = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        }

        System.out.println(map.size());
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashMap; HashMap java.util public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        HashMap map = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        }

        System.out.println(map.size());
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        HashMap map = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        }

        System.out.println(map.size());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        HashMap map = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        }

        System.out.println(map.size());
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br HashMap map = new HashMap<String, Integer>(); map new HashMap<String, Integer>() for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            map.put(br.readLine(), i);
        } {
            map.put(br.readLine(), i);
        } map.put(br.readLine(), i) map.put map br.readLine() br.readLine br i System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        HashMap map = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        }

        System.out.println(map.size());
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        HashMap map = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        }

        System.out.println(map.size());
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        HashMap map = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            map.put(br.readLine(), i);
        }

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