import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<String> array = new ArrayList<String>();

		while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		}

		int ans = array.size();

		System.out.println(ans);

		sc.close();

	}

} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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();

		ArrayList<String> array = new ArrayList<String>();

		while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		}

		int ans = array.size();

		System.out.println(ans);

		sc.close();

	}

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

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<String> array = new ArrayList<String>();

		while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		}

		int ans = array.size();

		System.out.println(ans);

		sc.close();

	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<String> array = new ArrayList<String>();

		while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		}

		int ans = array.size();

		System.out.println(ans);

		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc ArrayList<String> array = new ArrayList<String>(); array new ArrayList<String>() while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		} sc.hasNext() sc.hasNext sc {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		} String s = sc.next(); s sc.next() sc.next sc int index = Collections.binarySearch(array, s); index Collections.binarySearch(array, s) Collections.binarySearch Collections array s if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			} index < 0 index 0 {
				index = - (index + 1);
				array.add(index, s);
			} index = - (index + 1) index - (index + 1) (index + 1) index 1 array.add(index, s) array.add array index s int ans = array.size(); ans array.size() array.size array System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<String> array = new ArrayList<String>();

		while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		}

		int ans = array.size();

		System.out.println(ans);

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<String> array = new ArrayList<String>();

		while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		}

		int ans = array.size();

		System.out.println(ans);

		sc.close();

	}

} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<String> array = new ArrayList<String>();

		while(sc.hasNext()) {
			String s = sc.next();
			int index = Collections.binarySearch(array, s);
			if(index < 0) {
				index = - (index + 1);
				array.add(index, s);
			}
		}

		int ans = array.size();

		System.out.println(ans);

		sc.close();

	}

}
