
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set = new HashSet<String>();
		for(int i=0; i<n; i++) {
			String s = sc.next();
			set.add(s);
		}
		System.out.println(set.size());
		sc.close();
	}


} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set = new HashSet<String>();
		for(int i=0; i<n; i++) {
			String s = sc.next();
			set.add(s);
		}
		System.out.println(set.size());
		sc.close();
	}


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

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set = new HashSet<String>();
		for(int i=0; i<n; i++) {
			String s = sc.next();
			set.add(s);
		}
		System.out.println(set.size());
		sc.close();
	}


} public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set = new HashSet<String>();
		for(int i=0; i<n; i++) {
			String s = sc.next();
			set.add(s);
		}
		System.out.println(set.size());
		sc.close();
	}


} Main

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		Set<String> set = new HashSet<String>();
		for(int i=0; i<n; i++) {
			String s = sc.next();
			set.add(s);
		}
		System.out.println(set.size());
		sc.close();
	}


}