import java.util.Scanner;
import java.util.TreeSet;

public class Main {
	public static void main(String[] args) {
		int n;
		TreeSet<String> ts = new TreeSet<>();
		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();

		String[] array = new String[n];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		}

		for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		}

		System.out.println(ts.size());
	}
} import java.util.Scanner; Scanner java.util import java.util.TreeSet; TreeSet java.util public class Main {
	public static void main(String[] args) {
		int n;
		TreeSet<String> ts = new TreeSet<>();
		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();

		String[] array = new String[n];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		}

		for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		}

		System.out.println(ts.size());
	}
} Main public static void main(String[] args) {
		int n;
		TreeSet<String> ts = new TreeSet<>();
		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();

		String[] array = new String[n];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		}

		for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		}

		System.out.println(ts.size());
	} main {
		int n;
		TreeSet<String> ts = new TreeSet<>();
		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();

		String[] array = new String[n];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		}

		for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		}

		System.out.println(ts.size());
	} int n; n TreeSet<String> ts = new TreeSet<>(); ts new TreeSet<>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) n = scan.nextInt() n scan.nextInt() scan.nextInt scan String[] array = new String[n]; array new String[n] n for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		} int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
			array[i] = scan.next();
		} {
			array[i] = scan.next();
		} array[i] = scan.next() array[i] array i scan.next() scan.next scan for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		} int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
			ts.add(array[i]);
		} {
			ts.add(array[i]);
		} ts.add(array[i]) ts.add ts array[i] array i System.out.println(ts.size()) System.out.println System.out System System.out ts.size() ts.size ts String[] args args public class Main {
	public static void main(String[] args) {
		int n;
		TreeSet<String> ts = new TreeSet<>();
		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();

		String[] array = new String[n];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		}

		for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		}

		System.out.println(ts.size());
	}
} public class Main {
	public static void main(String[] args) {
		int n;
		TreeSet<String> ts = new TreeSet<>();
		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();

		String[] array = new String[n];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		}

		for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		}

		System.out.println(ts.size());
	}
} Main
import java.util.Scanner;
import java.util.TreeSet;

public class Main {
	public static void main(String[] args) {
		int n;
		TreeSet<String> ts = new TreeSet<>();
		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();

		String[] array = new String[n];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.next();
		}

		for(int i = 0; i < array.length; i++) {
			ts.add(array[i]);
		}

		System.out.println(ts.size());
	}
}
