import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		HashSet<String> hs = new HashSet<String>();
		String s = null;

		sc.nextLine();

		for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		}

		System.out.println(hs.size());

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		HashSet<String> hs = new HashSet<String>();
		String s = null;

		sc.nextLine();

		for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		}

		System.out.println(hs.size());

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		HashSet<String> hs = new HashSet<String>();
		String s = null;

		sc.nextLine();

		for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		}

		System.out.println(hs.size());

	} main {

		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		HashSet<String> hs = new HashSet<String>();
		String s = null;

		sc.nextLine();

		for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		}

		System.out.println(hs.size());

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long n = sc.nextLong(); n sc.nextLong() sc.nextLong sc HashSet<String> hs = new HashSet<String>(); hs new HashSet<String>() String s = null; s null sc.nextLine() sc.nextLine sc for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			s = sc.nextLine();
			hs.add(s);
		} {

			s = sc.nextLine();
			hs.add(s);
		} s = sc.nextLine() s sc.nextLine() sc.nextLine sc hs.add(s) hs.add hs s System.out.println(hs.size()) System.out.println System.out System System.out hs.size() hs.size hs String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		HashSet<String> hs = new HashSet<String>();
		String s = null;

		sc.nextLine();

		for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		}

		System.out.println(hs.size());

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		HashSet<String> hs = new HashSet<String>();
		String s = null;

		sc.nextLine();

		for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		}

		System.out.println(hs.size());

	}

} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		HashSet<String> hs = new HashSet<String>();
		String s = null;

		sc.nextLine();

		for (int i = 0; i < n; i++) {

			s = sc.nextLine();
			hs.add(s);
		}

		System.out.println(hs.size());

	}

}
