import java.util.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// くじ引き回数
		int N = sc.nextInt();
        List<String> listA = new ArrayList<String>(N);
		for (int i=0; i<N; i++) {
          listA.add(sc.next());
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

        //System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
	}
} import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// くじ引き回数
		int N = sc.nextInt();
        List<String> listA = new ArrayList<String>(N);
		for (int i=0; i<N; i++) {
          listA.add(sc.next());
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

        //System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// くじ引き回数
		int N = sc.nextInt();
        List<String> listA = new ArrayList<String>(N);
		for (int i=0; i<N; i++) {
          listA.add(sc.next());
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

        //System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
	} main {
		Scanner sc = new Scanner(System.in);
		// くじ引き回数
		int N = sc.nextInt();
        List<String> listA = new ArrayList<String>(N);
		for (int i=0; i<N; i++) {
          listA.add(sc.next());
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

        //System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc List<String> listA = new ArrayList<String>(N); listA new ArrayList<String>(N) for (int i=0; i<N; i++) {
          listA.add(sc.next());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
          listA.add(sc.next());
        } {
          listA.add(sc.next());
        } listA.add(sc.next()) listA.add listA sc.next() sc.next sc List<String> listB = new ArrayList<String>(new HashSet<>(listA)); listB new ArrayList<String>(new HashSet<>(listA)) System.out.println(listB.size()) System.out.println System.out System System.out listB.size() listB.size listB String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// くじ引き回数
		int N = sc.nextInt();
        List<String> listA = new ArrayList<String>(N);
		for (int i=0; i<N; i++) {
          listA.add(sc.next());
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

        //System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// くじ引き回数
		int N = sc.nextInt();
        List<String> listA = new ArrayList<String>(N);
		for (int i=0; i<N; i++) {
          listA.add(sc.next());
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

        //System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
	}
} Main
import java.util.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// くじ引き回数
		int N = sc.nextInt();
        List<String> listA = new ArrayList<String>(N);
		for (int i=0; i<N; i++) {
          listA.add(sc.next());
        }

        List<String> listB = new ArrayList<String>(new HashSet<>(listA));

        //System.out.println("ListA = " + listA);
        //System.out.println("ListB = " + listB);
        System.out.println(listB.size());
	}
}