import java.util.Scanner;
import java.util.Set;
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        Set<String> hash_set = new HashSet<String>();
        
        
        String s = scan.nextLine();


        for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        }


        System.out.println(hash_set.size());
 
        scan.close();
    }
} import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        Set<String> hash_set = new HashSet<String>();
        
        
        String s = scan.nextLine();


        for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        }


        System.out.println(hash_set.size());
 
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        Set<String> hash_set = new HashSet<String>();
        
        
        String s = scan.nextLine();


        for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        }


        System.out.println(hash_set.size());
 
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        Set<String> hash_set = new HashSet<String>();
        
        
        String s = scan.nextLine();


        for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        }


        System.out.println(hash_set.size());
 
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan Set<String> hash_set = new HashSet<String>(); hash_set new HashSet<String>() String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            hash_set.add(scan.nextLine());   
        } {
            hash_set.add(scan.nextLine());   
        } hash_set.add(scan.nextLine()) hash_set.add hash_set scan.nextLine() scan.nextLine scan System.out.println(hash_set.size()) System.out.println System.out System System.out hash_set.size() hash_set.size hash_set scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        Set<String> hash_set = new HashSet<String>();
        
        
        String s = scan.nextLine();


        for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        }


        System.out.println(hash_set.size());
 
        scan.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        Set<String> hash_set = new HashSet<String>();
        
        
        String s = scan.nextLine();


        for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        }


        System.out.println(hash_set.size());
 
        scan.close();
    }
} Main
import java.util.Scanner;
import java.util.Set;
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        Set<String> hash_set = new HashSet<String>();
        
        
        String s = scan.nextLine();


        for (int i = 0; i < n; i++) {
            hash_set.add(scan.nextLine());   
        }


        System.out.println(hash_set.size());
 
        scan.close();
    }
}
