

void main(){
	
	auto N = readLine!long()[0];
	
	long[string] dict;
	
	foreach( i ; 0..N ){
		dict[ readln().chomp() ] = 1;
	}
	
	writeln(dict.length);
	
	
}


import std.stdio, std.string, std.conv;
import std.math, std.algorithm, std.array;
import std.regex;


T[] readLine( T = size_t )( string sp = " " ){
	T[] ol;
	foreach( string elm ; readln().chomp().split(sp) ){
		ol ~= elm.to!T();
	}
	return ol;
}