import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i = 0; i < N; i++){
        	set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i = 0; i < N; i++){
        	set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    }
} Main public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i = 0; i < N; i++){
        	set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    } main {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i = 0; i < N; i++){
        	set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Set<String> set = new HashSet<String>(); set new HashSet<String>() for(int i = 0; i < N; i++){
        	set.add(sc.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        	set.add(sc.next());
        } {
        	set.add(sc.next());
        } set.add(sc.next()) set.add set sc.next() sc.next sc sc.close() sc.close sc System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[] args args public class Main {
    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i = 0; i < N; i++){
        	set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    }
} public class Main {
    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i = 0; i < N; i++){
        	set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<String>();
        for(int i = 0; i < N; i++){
        	set.add(sc.next());
        }
        sc.close();
        System.out.println(set.size());
    }
}