import java.util.*;
import java.util.stream.*;

public class Main {
    private static final boolean IS_TAKAHASHI_TURN = true;

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        long giftCount = sc.nextLong();
        Set<String> giftList = new HashSet<>();
        for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        }
        System.out.println(giftList.size());
    }
} import java.util.*; util.* java import java.util.stream.*; stream.* java.util public class Main {
    private static final boolean IS_TAKAHASHI_TURN = true;

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        long giftCount = sc.nextLong();
        Set<String> giftList = new HashSet<>();
        for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        }
        System.out.println(giftList.size());
    }
} Main private static final boolean IS_TAKAHASHI_TURN = true; IS_TAKAHASHI_TURN true public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        long giftCount = sc.nextLong();
        Set<String> giftList = new HashSet<>();
        for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        }
        System.out.println(giftList.size());
    } main {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        long giftCount = sc.nextLong();
        Set<String> giftList = new HashSet<>();
        for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        }
        System.out.println(giftList.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long giftCount = sc.nextLong(); giftCount sc.nextLong() sc.nextLong sc Set<String> giftList = new HashSet<>(); giftList new HashSet<>() for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        } int i = 0; int i = 0; i 0 i < giftCount i giftCount i++ i++ i {
            String gift = sc.next();
            giftList.add(gift);
        } {
            String gift = sc.next();
            giftList.add(gift);
        } String gift = sc.next(); gift sc.next() sc.next sc giftList.add(gift) giftList.add giftList gift System.out.println(giftList.size()) System.out.println System.out System System.out giftList.size() giftList.size giftList String[] args args public class Main {
    private static final boolean IS_TAKAHASHI_TURN = true;

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        long giftCount = sc.nextLong();
        Set<String> giftList = new HashSet<>();
        for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        }
        System.out.println(giftList.size());
    }
} public class Main {
    private static final boolean IS_TAKAHASHI_TURN = true;

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        long giftCount = sc.nextLong();
        Set<String> giftList = new HashSet<>();
        for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        }
        System.out.println(giftList.size());
    }
} Main
import java.util.*;
import java.util.stream.*;

public class Main {
    private static final boolean IS_TAKAHASHI_TURN = true;

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        long giftCount = sc.nextLong();
        Set<String> giftList = new HashSet<>();
        for (int i = 0; i < giftCount; i++) {
            String gift = sc.next();
            giftList.add(gift);
        }
        System.out.println(giftList.size());
    }
}
