import std.stdio, std.string, std.conv;
import std.typecons;
import std.algorithm, std.array, std.range, std.container;
import std.math;

void main() {
	auto N = readln.split[0].to!int;
	bool[string] S;
	foreach (i; 0 .. N) {
	    S[readln.split[0]] = true;
	}
	writeln(S.keys.length);
}

