import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
        // Your code here!

       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       List<String> tinko = new ArrayList<>();

       for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       }

       Long kosuu = tinko.stream().distinct().count();

       System.out.println(kosuu);

    }

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
        // Your code here!

       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       List<String> tinko = new ArrayList<>();

       for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       }

       Long kosuu = tinko.stream().distinct().count();

       System.out.println(kosuu);

    }

} Main public static void main(String[] args) throws Exception {
        // Your code here!

       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       List<String> tinko = new ArrayList<>();

       for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       }

       Long kosuu = tinko.stream().distinct().count();

       System.out.println(kosuu);

    } main {
        // Your code here!

       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       List<String> tinko = new ArrayList<>();

       for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       }

       Long kosuu = tinko.stream().distinct().count();

       System.out.println(kosuu);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc List<String> tinko = new ArrayList<>(); tinko new ArrayList<>() for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       } int t = 0; int t = 0; t 0 t < i t i t++ t++ t {
           tinko.add(sc.next());
       } {
           tinko.add(sc.next());
       } tinko.add(sc.next()) tinko.add tinko sc.next() sc.next sc Long kosuu = tinko.stream().distinct().count(); kosuu tinko.stream().distinct().count() tinko.stream().distinct().count tinko.stream().distinct() tinko.stream().distinct tinko.stream() tinko.stream tinko System.out.println(kosuu) System.out.println System.out System System.out kosuu String[] args args public class Main {
	public static void main(String[] args) throws Exception {
        // Your code here!

       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       List<String> tinko = new ArrayList<>();

       for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       }

       Long kosuu = tinko.stream().distinct().count();

       System.out.println(kosuu);

    }

} public class Main {
	public static void main(String[] args) throws Exception {
        // Your code here!

       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       List<String> tinko = new ArrayList<>();

       for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       }

       Long kosuu = tinko.stream().distinct().count();

       System.out.println(kosuu);

    }

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
        // Your code here!

       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       List<String> tinko = new ArrayList<>();

       for(int t = 0;t < i;t++){
           tinko.add(sc.next());
       }

       Long kosuu = tinko.stream().distinct().count();

       System.out.println(kosuu);

    }

}