import java.util.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = 998244353;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = 200001;


	void doIt() {
		int N = sc.nextInt();
		Set<String> set = new HashSet<>();
		for(int i = 0; i < N; i++) {
			set.add(sc.next());
		}
		System.out.println(set.size());
	}

	public static void main(String[] args) {
		new Main().doIt();
	}
} import java.util.*; util.* java public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = 998244353;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = 200001;


	void doIt() {
		int N = sc.nextInt();
		Set<String> set = new HashSet<>();
		for(int i = 0; i < N; i++) {
			set.add(sc.next());
		}
		System.out.println(set.size());
	}

	public static void main(String[] args) {
		new Main().doIt();
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int MOD = 998244353; MOD 998244353 final int MAX = Integer.MAX_VALUE; MAX Integer.MAX_VALUE Integer Integer.MAX_VALUE final long LMAX = Long.MAX_VALUE; LMAX Long.MAX_VALUE Long Long.MAX_VALUE int len = 200001; len 200001 void doIt() {
		int N = sc.nextInt();
		Set<String> set = new HashSet<>();
		for(int i = 0; i < N; i++) {
			set.add(sc.next());
		}
		System.out.println(set.size());
	} doIt {
		int N = sc.nextInt();
		Set<String> set = new HashSet<>();
		for(int i = 0; i < N; i++) {
			set.add(sc.next());
		}
		System.out.println(set.size());
	} int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Set<String> set = new HashSet<>(); set new HashSet<>() for(int i = 0; i < N; i++) {
			set.add(sc.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			set.add(sc.next());
		} {
			set.add(sc.next());
		} set.add(sc.next()) set.add set sc.next() sc.next sc System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set public static void main(String[] args) {
		new Main().doIt();
	} main {
		new Main().doIt();
	} new Main().doIt() new Main().doIt new Main() String[] args args public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = 998244353;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = 200001;


	void doIt() {
		int N = sc.nextInt();
		Set<String> set = new HashSet<>();
		for(int i = 0; i < N; i++) {
			set.add(sc.next());
		}
		System.out.println(set.size());
	}

	public static void main(String[] args) {
		new Main().doIt();
	}
} public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = 998244353;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = 200001;


	void doIt() {
		int N = sc.nextInt();
		Set<String> set = new HashSet<>();
		for(int i = 0; i < N; i++) {
			set.add(sc.next());
		}
		System.out.println(set.size());
	}

	public static void main(String[] args) {
		new Main().doIt();
	}
} Main
import java.util.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = 998244353;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = 200001;


	void doIt() {
		int N = sc.nextInt();
		Set<String> set = new HashSet<>();
		for(int i = 0; i < N; i++) {
			set.add(sc.next());
		}
		System.out.println(set.size());
	}

	public static void main(String[] args) {
		new Main().doIt();
	}
}
