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

class Main {
    public static void main(final String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> s = new HashSet<>();
        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        System.out.println(s.size());
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util class Main {
    public static void main(final String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> s = new HashSet<>();
        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        System.out.println(s.size());
    }
} Main public static void main(final String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> s = new HashSet<>();
        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        System.out.println(s.size());
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> s = new HashSet<>();
        for (int i = 0; i < n; i++) {
            s.add(sc.next());
        }
        System.out.println(s.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Set<String> s = new HashSet<>(); s new HashSet<>() for (int i = 0; i < n; i++) {
            s.add(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            s.add(sc.next());
        } {
            s.add(sc.next());
        } s.add(sc.next()) s.add s sc.next() sc.next sc System.out.println(s.size()) System.out.println System.out System System.out s.size() s.size s final String[] args args
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

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