import java.io.*;
import java.util.*;

/**
 * Created by Ayushi on 26 Apr 2020.
 * Problem:
 * Round:
 */

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());
        //ArrayList<String> arr = new ArrayList<>();
        //HashMap<String, Integer> hmap = new HashMap<>();
        Set<String> s = new HashSet<>();
        //int ans = 0;
        while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        }
        br.close();
        System.out.println(s.size());
    }
} import java.io.*; io.* java import java.util.*; util.* java 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());
        //ArrayList<String> arr = new ArrayList<>();
        //HashMap<String, Integer> hmap = new HashMap<>();
        Set<String> s = new HashSet<>();
        //int ans = 0;
        while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        }
        br.close();
        System.out.println(s.size());
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        //ArrayList<String> arr = new ArrayList<>();
        //HashMap<String, Integer> hmap = new HashMap<>();
        Set<String> s = new HashSet<>();
        //int ans = 0;
        while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        }
        br.close();
        System.out.println(s.size());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        //ArrayList<String> arr = new ArrayList<>();
        //HashMap<String, Integer> hmap = new HashMap<>();
        Set<String> s = new HashSet<>();
        //int ans = 0;
        while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        }
        br.close();
        System.out.println(s.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 Set<String> s = new HashSet<>(); s new HashSet<>() while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        } n-- > 0 n-- n 0 {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        } String a = br.readLine(); a br.readLine() br.readLine br s.add(a) s.add s a br.close() br.close br System.out.println(s.size()) System.out.println System.out System System.out s.size() s.size s 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());
        //ArrayList<String> arr = new ArrayList<>();
        //HashMap<String, Integer> hmap = new HashMap<>();
        Set<String> s = new HashSet<>();
        //int ans = 0;
        while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        }
        br.close();
        System.out.println(s.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());
        //ArrayList<String> arr = new ArrayList<>();
        //HashMap<String, Integer> hmap = new HashMap<>();
        Set<String> s = new HashSet<>();
        //int ans = 0;
        while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        }
        br.close();
        System.out.println(s.size());
    }
} Main
import java.io.*;
import java.util.*;

/**
 * Created by Ayushi on 26 Apr 2020.
 * Problem:
 * Round:
 */

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());
        //ArrayList<String> arr = new ArrayList<>();
        //HashMap<String, Integer> hmap = new HashMap<>();
        Set<String> s = new HashSet<>();
        //int ans = 0;
        while (n-- > 0) {
            String a = br.readLine();
            s.add(a);
            /*if (!arr.contains(a)) {
                ans++;
                arr.add(a);
            }*/
        }
        br.close();
        System.out.println(s.size());
    }
}
