import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	static void f(String[] strings){
		Set<String> linkedHashSet = new LinkedHashSet<String>();

		for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    }
		 Object[] strings_after = linkedHashSet.toArray();

		 System.out.println(strings_after.length);
	}

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

		int N = scan.nextInt();
		String[] S = new String[N];

		for(int i=0;i<N;i++) {
			S[i] = scan.next();
		}

		f(S);

		scan.close();
	}

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

	static void f(String[] strings){
		Set<String> linkedHashSet = new LinkedHashSet<String>();

		for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    }
		 Object[] strings_after = linkedHashSet.toArray();

		 System.out.println(strings_after.length);
	}

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

		int N = scan.nextInt();
		String[] S = new String[N];

		for(int i=0;i<N;i++) {
			S[i] = scan.next();
		}

		f(S);

		scan.close();
	}

} Main static void f(String[] strings){
		Set<String> linkedHashSet = new LinkedHashSet<String>();

		for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    }
		 Object[] strings_after = linkedHashSet.toArray();

		 System.out.println(strings_after.length);
	} f {
		Set<String> linkedHashSet = new LinkedHashSet<String>();

		for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    }
		 Object[] strings_after = linkedHashSet.toArray();

		 System.out.println(strings_after.length);
	} Set<String> linkedHashSet = new LinkedHashSet<String>(); linkedHashSet new LinkedHashSet<String>() for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    } int i = 0; int i = 0; i 0 i < strings.length i strings.length strings strings.length i++ i++ i {
		    linkedHashSet.add(strings[i]);
		    } {
		    linkedHashSet.add(strings[i]);
		    } linkedHashSet.add(strings[i]) linkedHashSet.add linkedHashSet strings[i] strings i Object[] strings_after = linkedHashSet.toArray(); strings_after linkedHashSet.toArray() linkedHashSet.toArray linkedHashSet System.out.println(strings_after.length) System.out.println System.out System System.out strings_after.length strings_after strings_after.length String[] strings strings public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		String[] S = new String[N];

		for(int i=0;i<N;i++) {
			S[i] = scan.next();
		}

		f(S);

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

		int N = scan.nextInt();
		String[] S = new String[N];

		for(int i=0;i<N;i++) {
			S[i] = scan.next();
		}

		f(S);

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan String[] S = new String[N]; S new String[N] N for(int i=0;i<N;i++) {
			S[i] = scan.next();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			S[i] = scan.next();
		} {
			S[i] = scan.next();
		} S[i] = scan.next() S[i] S i scan.next() scan.next scan f(S) f S scan.close() scan.close scan String[] args args public class Main {

	static void f(String[] strings){
		Set<String> linkedHashSet = new LinkedHashSet<String>();

		for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    }
		 Object[] strings_after = linkedHashSet.toArray();

		 System.out.println(strings_after.length);
	}

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

		int N = scan.nextInt();
		String[] S = new String[N];

		for(int i=0;i<N;i++) {
			S[i] = scan.next();
		}

		f(S);

		scan.close();
	}

} public class Main {

	static void f(String[] strings){
		Set<String> linkedHashSet = new LinkedHashSet<String>();

		for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    }
		 Object[] strings_after = linkedHashSet.toArray();

		 System.out.println(strings_after.length);
	}

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

		int N = scan.nextInt();
		String[] S = new String[N];

		for(int i=0;i<N;i++) {
			S[i] = scan.next();
		}

		f(S);

		scan.close();
	}

} Main
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	static void f(String[] strings){
		Set<String> linkedHashSet = new LinkedHashSet<String>();

		for (int i = 0; i < strings.length; i++) {
		    linkedHashSet.add(strings[i]);
		    }
		 Object[] strings_after = linkedHashSet.toArray();

		 System.out.println(strings_after.length);
	}

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

		int N = scan.nextInt();
		String[] S = new String[N];

		for(int i=0;i<N;i++) {
			S[i] = scan.next();
		}

		f(S);

		scan.close();
	}

}
