import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = sc.nextInt();
        sc.nextLine();
        HashSet<String> h = new HashSet<>();
        for(int i = 0; i < n; i++) {
            h.add(sc.nextLine().trim());
        }
        System.out.println(h.size());
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = sc.nextInt();
        sc.nextLine();
        HashSet<String> h = new HashSet<>();
        for(int i = 0; i < n; i++) {
            h.add(sc.nextLine().trim());
        }
        System.out.println(h.size());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = sc.nextInt();
        sc.nextLine();
        HashSet<String> h = new HashSet<>();
        for(int i = 0; i < n; i++) {
            h.add(sc.nextLine().trim());
        }
        System.out.println(h.size());
    } main {
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = sc.nextInt();
        sc.nextLine();
        HashSet<String> h = new HashSet<>();
        for(int i = 0; i < n; i++) {
            h.add(sc.nextLine().trim());
        }
        System.out.println(h.size());
    } Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in))); sc new Scanner(new BufferedReader(new InputStreamReader(System.in))) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc HashSet<String> h = new HashSet<>(); h new HashSet<>() for(int i = 0; i < n; i++) {
            h.add(sc.nextLine().trim());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h.add(sc.nextLine().trim());
        } {
            h.add(sc.nextLine().trim());
        } h.add(sc.nextLine().trim()) h.add h sc.nextLine().trim() sc.nextLine().trim sc.nextLine() sc.nextLine sc System.out.println(h.size()) System.out.println System.out System System.out h.size() h.size h String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Scanner;

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