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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<>();
        int res = 0;
        for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        }
        System.out.println(res);
    }
} 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) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<>();
        int res = 0;
        for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        }
        System.out.println(res);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<>();
        int res = 0;
        for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        }
        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<>();
        int res = 0;
        for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        }
        System.out.println(res);
    } 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<>(); set new HashSet<>() int res = 0; res 0 for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        } {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        } String s = sc.next(); s sc.next() sc.next sc if(!set.contains(s)) {
                set.add(s);
                res++;
            } !set.contains(s) set.contains(s) set.contains set s {
                set.add(s);
                res++;
            } set.add(s) set.add set s res++ res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<>();
        int res = 0;
        for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        }
        System.out.println(res);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<>();
        int res = 0;
        for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        }
        System.out.println(res);
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set<String> set = new HashSet<>();
        int res = 0;
        for(int i = 0; i < N; i++) {
            String s = sc.next();
            if(!set.contains(s)) {
                set.add(s);
                res++;
            }
        }
        System.out.println(res);
    }
}
