import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop;


void main() {
    auto N = readln.chomp.to!int;
    bool[string] s;
    foreach (_; 0..N) {
        auto t = readln.chomp;
        s[t] = true;
    }

    s.keys.length.writeln;
}
