import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.HashSet;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		
		try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} 

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset import java.util.HashSet; HashSet java.util import java.util.Set; Set java.util public class Main {

	public static void main(String[] args) {
		
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		
		try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} 

	}

} Main public static void main(String[] args) {
		
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		
		try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} 

	} main {
		
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		
		try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} 

	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} BufferedReader br = new BufferedReader(reader) BufferedReader br = new BufferedReader(reader) new BufferedReader(reader) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Set<String> input = new HashSet<>(); input new HashSet<>() for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				input.add(br.readLine());
			} {
				input.add(br.readLine());
			} input.add(br.readLine()) input.add input br.readLine() br.readLine br System.out.println(input.size()) System.out.println System.out System System.out input.size() input.size input String[] args args public class Main {

	public static void main(String[] args) {
		
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		
		try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} 

	}

} public class Main {

	public static void main(String[] args) {
		
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		
		try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} 

	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.HashSet;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		
		try(BufferedReader br = new BufferedReader(reader)) {
			int n = Integer.parseInt(br.readLine());
			Set<String> input = new HashSet<>();
			for(int i = 0; i < n; i++) {
				input.add(br.readLine());
			}
			System.out.println(input.size());
		} catch (IOException e) {
			e.printStackTrace();
		} 

	}

}