import java.util.Arrays;
import java.util.HashSet;
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 = Integer.parseInt(sc.nextLine());

		String[] s = new String[n];
		for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		}

		System.out.println(Arrays.stream(s).distinct().count());
    }
} import java.util.Arrays; Arrays java.util 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 sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());

		String[] s = new String[n];
		for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		}

		System.out.println(Arrays.stream(s).distinct().count());
    }
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());

		String[] s = new String[n];
		for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		}

		System.out.println(Arrays.stream(s).distinct().count());
    } main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());

		String[] s = new String[n];
		for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		}

		System.out.println(Arrays.stream(s).distinct().count());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] s = new String[n]; s new String[n] n for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			s[i] = sc.nextLine();
		} {
			s[i] = sc.nextLine();
		} s[i] = sc.nextLine() s[i] s i sc.nextLine() sc.nextLine sc System.out.println(Arrays.stream(s).distinct().count()) System.out.println System.out System System.out Arrays.stream(s).distinct().count() Arrays.stream(s).distinct().count Arrays.stream(s).distinct() Arrays.stream(s).distinct Arrays.stream(s) Arrays.stream Arrays s String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());

		String[] s = new String[n];
		for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		}

		System.out.println(Arrays.stream(s).distinct().count());
    }
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());

		String[] s = new String[n];
		for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		}

		System.out.println(Arrays.stream(s).distinct().count());
    }
} Main
import java.util.Arrays;
import java.util.HashSet;
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 = Integer.parseInt(sc.nextLine());

		String[] s = new String[n];
		for(int i = 0;i < n;i++) {
			s[i] = sc.nextLine();
		}

		System.out.println(Arrays.stream(s).distinct().count());
    }
}