import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		String[] mozi = new String[n];
		int count = 0;

		for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		}

		List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
		List<String> listB = new ArrayList<String>(new HashSet<>(listA));

		for(String s:listB) {
			count++;
		}

		System.out.println(count);
	}

} 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 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		String[] mozi = new String[n];
		int count = 0;

		for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		}

		List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
		List<String> listB = new ArrayList<String>(new HashSet<>(listA));

		for(String s:listB) {
			count++;
		}

		System.out.println(count);
	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		String[] mozi = new String[n];
		int count = 0;

		for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		}

		List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
		List<String> listB = new ArrayList<String>(new HashSet<>(listA));

		for(String s:listB) {
			count++;
		}

		System.out.println(count);
	} main {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		String[] mozi = new String[n];
		int count = 0;

		for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		}

		List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
		List<String> listB = new ArrayList<String>(new HashSet<>(listA));

		for(String s:listB) {
			count++;
		}

		System.out.println(count);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan String[] mozi = new String[n]; mozi new String[n] n int count = 0; count 0 for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			mozi[i] = scan.next();
		} {
			mozi[i] = scan.next();
		} mozi[i] = scan.next() mozi[i] mozi i scan.next() scan.next scan List<String> listA = new ArrayList<String>(Arrays.asList(mozi)); listA new ArrayList<String>(Arrays.asList(mozi)) List<String> listB = new ArrayList<String>(new HashSet<>(listA)); listB new ArrayList<String>(new HashSet<>(listA)) for(String s:listB) {
			count++;
		} String s listB {
			count++;
		} {
			count++;
		} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		String[] mozi = new String[n];
		int count = 0;

		for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		}

		List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
		List<String> listB = new ArrayList<String>(new HashSet<>(listA));

		for(String s:listB) {
			count++;
		}

		System.out.println(count);
	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		String[] mozi = new String[n];
		int count = 0;

		for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		}

		List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
		List<String> listB = new ArrayList<String>(new HashSet<>(listA));

		for(String s:listB) {
			count++;
		}

		System.out.println(count);
	}

} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		String[] mozi = new String[n];
		int count = 0;

		for(int i=0;i<n;i++) {
			mozi[i] = scan.next();
		}

		List<String> listA = new ArrayList<String>(Arrays.asList(mozi));
		List<String> listB = new ArrayList<String>(new HashSet<>(listA));

		for(String s:listB) {
			count++;
		}

		System.out.println(count);
	}

}
