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

public class Main {

    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        
        HashSet<String> set = new HashSet();
        
        int N = in.nextInt();
        in.nextLine();
        int ans = 0;
        
        for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        }
        
        System.out.println(ans);
    }
    

        
} import java.util.*; util.* java import java.io.*; io.* java public class Main {

    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        
        HashSet<String> set = new HashSet();
        
        int N = in.nextInt();
        in.nextLine();
        int ans = 0;
        
        for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        }
        
        System.out.println(ans);
    }
    

        
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        
        HashSet<String> set = new HashSet();
        
        int N = in.nextInt();
        in.nextLine();
        int ans = 0;
        
        for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        }
        
        System.out.println(ans);
    } main {
        // Your code here!
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        
        HashSet<String> set = new HashSet();
        
        int N = in.nextInt();
        in.nextLine();
        int ans = 0;
        
        for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        }
        
        System.out.println(ans);
    } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) HashSet<String> set = new HashSet(); set new HashSet() int N = in.nextInt(); N in.nextInt() in.nextInt in in.nextLine() in.nextLine in int ans = 0; ans 0 for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        } {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        } String s = in.nextLine(); s in.nextLine() in.nextLine in if(!set.contains(s)) {
                set.add(s);
                ans++;
            } !set.contains(s) set.contains(s) set.contains set s {
                set.add(s);
                ans++;
            } set.add(s) set.add set s ans++ ans 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) throws Exception {
        // Your code here!
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        
        HashSet<String> set = new HashSet();
        
        int N = in.nextInt();
        in.nextLine();
        int ans = 0;
        
        for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        }
        
        System.out.println(ans);
    }
    

        
} public class Main {

    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        
        HashSet<String> set = new HashSet();
        
        int N = in.nextInt();
        in.nextLine();
        int ans = 0;
        
        for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        }
        
        System.out.println(ans);
    }
    

        
} Main
import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        
        HashSet<String> set = new HashSet();
        
        int N = in.nextInt();
        in.nextLine();
        int ans = 0;
        
        for(int i = 0; i < N; i++) {
            String s = in.nextLine();

            if(!set.contains(s)) {
                set.add(s);
                ans++;
            }
        }
        
        System.out.println(ans);
    }
    

        
}
