function Main(input) {
    const [N, ...S] = input.split("\n")
    // console.log(S.reduce((pre, cur) => {return pre.includes(cur) ? pre : [...pre, cur] },[]).length)
    // console.log(N, S)
    let arr = []
    S.forEach(s => { 
        if (!arr.includes(s)) {
            arr.push(s)
        }
    })


    console.log(arr.length)
}
// Main(`4
// aaaa
// a
// aaa
// aa`)
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
