import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);

		int n = stdIn.nextInt();

		Set<String> set = new HashSet<>();

		for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		}

		int cnt = 0;
		for(String x: set) {
			cnt++;
		}
		
		System.out.println(cnt);


	}

} import java.util.HashSet; HashSet 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 stdIn = new Scanner(System.in);

		int n = stdIn.nextInt();

		Set<String> set = new HashSet<>();

		for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		}

		int cnt = 0;
		for(String x: set) {
			cnt++;
		}
		
		System.out.println(cnt);


	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);

		int n = stdIn.nextInt();

		Set<String> set = new HashSet<>();

		for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		}

		int cnt = 0;
		for(String x: set) {
			cnt++;
		}
		
		System.out.println(cnt);


	} main {
		Scanner stdIn = new Scanner(System.in);

		int n = stdIn.nextInt();

		Set<String> set = new HashSet<>();

		for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		}

		int cnt = 0;
		for(String x: set) {
			cnt++;
		}
		
		System.out.println(cnt);


	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn Set<String> set = new HashSet<>(); set new HashSet<>() for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String s = stdIn.next();
			set.add(s);

		} {
			String s = stdIn.next();
			set.add(s);

		} String s = stdIn.next(); s stdIn.next() stdIn.next stdIn set.add(s) set.add set s int cnt = 0; cnt 0 for(String x: set) {
			cnt++;
		} String x set {
			cnt++;
		} {
			cnt++;
		} cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);

		int n = stdIn.nextInt();

		Set<String> set = new HashSet<>();

		for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		}

		int cnt = 0;
		for(String x: set) {
			cnt++;
		}
		
		System.out.println(cnt);


	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);

		int n = stdIn.nextInt();

		Set<String> set = new HashSet<>();

		for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		}

		int cnt = 0;
		for(String x: set) {
			cnt++;
		}
		
		System.out.println(cnt);


	}

} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);

		int n = stdIn.nextInt();

		Set<String> set = new HashSet<>();

		for(int i = 0; i < n; i++) {
			String s = stdIn.next();
			set.add(s);

		}

		int cnt = 0;
		for(String x: set) {
			cnt++;
		}
		
		System.out.println(cnt);


	}

}
