import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int N = Integer.parseInt(in.readLine());
		Set<String> set = new HashSet<>();
		for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		}
		System.out.println(set.size());
	}

	void calc() {
	}

	void showResult() {
	}

} import java.util.*; util.* java import java.io.*; io.* java import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int N = Integer.parseInt(in.readLine());
		Set<String> set = new HashSet<>();
		for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		}
		System.out.println(set.size());
	}

	void calc() {
	}

	void showResult() {
	}

} Main public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} main {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) Main ins = new Main(in); ins new Main(in) ins.calc() ins.calc ins ins.showResult() ins.showResult ins String[] args args Main(BufferedReader in) throws IOException {
		int N = Integer.parseInt(in.readLine());
		Set<String> set = new HashSet<>();
		for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		}
		System.out.println(set.size());
	} Main {
		int N = Integer.parseInt(in.readLine());
		Set<String> set = new HashSet<>();
		for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		}
		System.out.println(set.size());
	} int N = Integer.parseInt(in.readLine()); N Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in Set<String> set = new HashSet<>(); set new HashSet<>() for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		} int i= 0; int i= 0; i 0 i < N i N ++i ++i i {
			set.add(in.readLine());
		} {
			set.add(in.readLine());
		} set.add(in.readLine()) set.add set in.readLine() in.readLine in System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set BufferedReader in in void calc() {
	} calc {
	} void showResult() {
	} showResult {
	} public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int N = Integer.parseInt(in.readLine());
		Set<String> set = new HashSet<>();
		for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		}
		System.out.println(set.size());
	}

	void calc() {
	}

	void showResult() {
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int N = Integer.parseInt(in.readLine());
		Set<String> set = new HashSet<>();
		for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		}
		System.out.println(set.size());
	}

	void calc() {
	}

	void showResult() {
	}

} Main
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int N = Integer.parseInt(in.readLine());
		Set<String> set = new HashSet<>();
		for(int i= 0; i < N; ++i) {
			set.add(in.readLine());
		}
		System.out.println(set.size());
	}

	void calc() {
	}

	void showResult() {
	}

}
