function Main(input) {
    const [N, ...S] = input.split("\n")
    console.log(S.reduce((pre, cur) => {
        return pre.includes(cur) ? pre : [...pre, cur]
    },[]).length)
}
// Main(`3
// apple
// orange
// apple`)
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
