import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int kosuu = sc.nextInt();
        List<String> syouhin = new ArrayList();
        for(int i = 0;i < kosuu;i++){
            String k = sc.next();
            syouhin.add(k);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(syouhin));
        System.out.println(listB.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int kosuu = sc.nextInt();
        List<String> syouhin = new ArrayList();
        for(int i = 0;i < kosuu;i++){
            String k = sc.next();
            syouhin.add(k);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(syouhin));
        System.out.println(listB.size());
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int kosuu = sc.nextInt();
        List<String> syouhin = new ArrayList();
        for(int i = 0;i < kosuu;i++){
            String k = sc.next();
            syouhin.add(k);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(syouhin));
        System.out.println(listB.size());
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int kosuu = sc.nextInt();
        List<String> syouhin = new ArrayList();
        for(int i = 0;i < kosuu;i++){
            String k = sc.next();
            syouhin.add(k);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(syouhin));
        System.out.println(listB.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int kosuu = sc.nextInt(); kosuu sc.nextInt() sc.nextInt sc List<String> syouhin = new ArrayList(); syouhin new ArrayList() for(int i = 0;i < kosuu;i++){
            String k = sc.next();
            syouhin.add(k);
        } int i = 0; int i = 0; i 0 i < kosuu i kosuu i++ i++ i {
            String k = sc.next();
            syouhin.add(k);
        } {
            String k = sc.next();
            syouhin.add(k);
        } String k = sc.next(); k sc.next() sc.next sc syouhin.add(k) syouhin.add syouhin k List<String> listB = new ArrayList<String>(new HashSet<>(syouhin)); listB new ArrayList<String>(new HashSet<>(syouhin)) System.out.println(listB.size()) System.out.println System.out System System.out listB.size() listB.size listB String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int kosuu = sc.nextInt();
        List<String> syouhin = new ArrayList();
        for(int i = 0;i < kosuu;i++){
            String k = sc.next();
            syouhin.add(k);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(syouhin));
        System.out.println(listB.size());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int kosuu = sc.nextInt();
        List<String> syouhin = new ArrayList();
        for(int i = 0;i < kosuu;i++){
            String k = sc.next();
            syouhin.add(k);
        }
        List<String> listB = new ArrayList<String>(new HashSet<>(syouhin));
        System.out.println(listB.size());
    }
} Main
import java.util.*;

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