import Foundation

let a = Int(readLine()!)!
var k:[String] = []
for _ in 0 ..< a {
    let input_line: String = readLine()!
        k.append(input_line)
}
let orderedSet = NSOrderedSet(array: k)
let uniqueValues = orderedSet.array as! [String]
print(uniqueValues.count)