import java.util.HashMap;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashMap<String,Integer> hash = new HashMap<>();
        int n = sc.nextInt();
        for (int i=0;i<n;i++)hash.put(sc.next(),1);
        System.out.println(hash.size());
    }
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashMap<String,Integer> hash = new HashMap<>();
        int n = sc.nextInt();
        for (int i=0;i<n;i++)hash.put(sc.next(),1);
        System.out.println(hash.size());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashMap<String,Integer> hash = new HashMap<>();
        int n = sc.nextInt();
        for (int i=0;i<n;i++)hash.put(sc.next(),1);
        System.out.println(hash.size());
    } main {
        Scanner sc = new Scanner(System.in);
        HashMap<String,Integer> hash = new HashMap<>();
        int n = sc.nextInt();
        for (int i=0;i<n;i++)hash.put(sc.next(),1);
        System.out.println(hash.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) HashMap<String,Integer> hash = new HashMap<>(); hash new HashMap<>() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i=0;i<n;i++)hash.put(sc.next(),1); int i=0; int i=0; i 0 i<n i n i++ i++ i hash.put(sc.next(),1); hash.put(sc.next(),1) hash.put hash sc.next() sc.next sc 1 System.out.println(hash.size()) System.out.println System.out System System.out hash.size() hash.size hash String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashMap<String,Integer> hash = new HashMap<>();
        int n = sc.nextInt();
        for (int i=0;i<n;i++)hash.put(sc.next(),1);
        System.out.println(hash.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashMap<String,Integer> hash = new HashMap<>();
        int n = sc.nextInt();
        for (int i=0;i<n;i++)hash.put(sc.next(),1);
        System.out.println(hash.size());
    }
} Main
import java.util.HashMap;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashMap<String,Integer> hash = new HashMap<>();
        int n = sc.nextInt();
        for (int i=0;i<n;i++)hash.put(sc.next(),1);
        System.out.println(hash.size());
    }
}
