import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<String> linkhash = new LinkedHashSet<String>();
		for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		}
		System.out.println(linkhash.size());
	}
} import java.util.LinkedHashSet; LinkedHashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<String> linkhash = new LinkedHashSet<String>();
		for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		}
		System.out.println(linkhash.size());
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<String> linkhash = new LinkedHashSet<String>();
		for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		}
		System.out.println(linkhash.size());
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<String> linkhash = new LinkedHashSet<String>();
		for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		}
		System.out.println(linkhash.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Set<String> linkhash = new LinkedHashSet<String>(); linkhash new LinkedHashSet<String>() for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			linkhash.add(sc.next());
		} {
			linkhash.add(sc.next());
		} linkhash.add(sc.next()) linkhash.add linkhash sc.next() sc.next sc System.out.println(linkhash.size()) System.out.println System.out System System.out linkhash.size() linkhash.size linkhash String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<String> linkhash = new LinkedHashSet<String>();
		for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		}
		System.out.println(linkhash.size());
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<String> linkhash = new LinkedHashSet<String>();
		for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		}
		System.out.println(linkhash.size());
	}
} Main
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<String> linkhash = new LinkedHashSet<String>();
		for (int i = 0; i < n; i++) {
			linkhash.add(sc.next());
		}
		System.out.println(linkhash.size());
	}
}
