import std.stdio;
import std.string;
import std.conv;

void main() {
  int n = readln.chomp.to!int;

  bool[string] table;

  foreach (i;0..n) {
    auto line = readln.chomp;
    table[line] = true;
  }

  writeln(table.length);
}
