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

/**
 * Main
 */
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        Map<String, Integer> Keihin = new HashMap<String, Integer>();

        for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        }
        System.out.println(Keihin.size());

    }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        Map<String, Integer> Keihin = new HashMap<String, Integer>();

        for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        }
        System.out.println(Keihin.size());

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        Map<String, Integer> Keihin = new HashMap<String, Integer>();

        for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        }
        System.out.println(Keihin.size());

    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        Map<String, Integer> Keihin = new HashMap<String, Integer>();

        for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        }
        System.out.println(Keihin.size());

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] S = new String[N]; S new String[N] N Map<String, Integer> Keihin = new HashMap<String, Integer>(); Keihin new HashMap<String, Integer>() for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            S[i] = sc.next();
            Keihin.put(S[i],i);
        } {
            S[i] = sc.next();
            Keihin.put(S[i],i);
        } S[i] = sc.next() S[i] S i sc.next() sc.next sc Keihin.put(S[i],i) Keihin.put Keihin S[i] S i i System.out.println(Keihin.size()) System.out.println System.out System System.out Keihin.size() Keihin.size Keihin String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        Map<String, Integer> Keihin = new HashMap<String, Integer>();

        for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        }
        System.out.println(Keihin.size());

    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        Map<String, Integer> Keihin = new HashMap<String, Integer>();

        for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        }
        System.out.println(Keihin.size());

    }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * Main
 */
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String[] S = new String[N];
        Map<String, Integer> Keihin = new HashMap<String, Integer>();

        for(int i = 0; i < N; i++){
            S[i] = sc.next();
            Keihin.put(S[i],i);
        }
        System.out.println(Keihin.size());

    }
}