import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

		List<String> listA = new ArrayList<String>(); 
        
        for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

//        System.out.println(listA);
//        System.out.println(listB);

        System.out.println(listB.size());
	    scan.close();	
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

		List<String> listA = new ArrayList<String>(); 
        
        for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

//        System.out.println(listA);
//        System.out.println(listB);

        System.out.println(listB.size());
	    scan.close();	
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

		List<String> listA = new ArrayList<String>(); 
        
        for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

//        System.out.println(listA);
//        System.out.println(listB);

        System.out.println(listB.size());
	    scan.close();	
    } main {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

		List<String> listA = new ArrayList<String>(); 
        
        for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

//        System.out.println(listA);
//        System.out.println(listB);

        System.out.println(listB.size());
	    scan.close();	
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan List<String> listA = new ArrayList<String>(); listA new ArrayList<String>() for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
			listA.add((scan.next()));
        } {
			listA.add((scan.next()));
        } listA.add((scan.next())) listA.add listA (scan.next()) scan.next scan List<String> listB = new ArrayList<String>(new HashSet<>(listA)); listB new ArrayList<String>(new HashSet<>(listA)) System.out.println(listB.size()) System.out.println System.out System System.out listB.size() listB.size listB 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();

		List<String> listA = new ArrayList<String>(); 
        
        for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

//        System.out.println(listA);
//        System.out.println(listB);

        System.out.println(listB.size());
	    scan.close();	
    }
} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

		List<String> listA = new ArrayList<String>(); 
        
        for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

//        System.out.println(listA);
//        System.out.println(listB);

        System.out.println(listB.size());
	    scan.close();	
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

		List<String> listA = new ArrayList<String>(); 
        
        for (int i=0; i<n; i++) {
			listA.add((scan.next()));
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

//        System.out.println(listA);
//        System.out.println(listB);

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