import Foundation

func readInts() -> [Int]{
    readLine()!.split(separator: " ").map { Int($0)! }
}

func main(){
    let count = Int(readLine()!)!
    var ary: Set = Set<String>()
    for _ in 1...count {
        ary.insert(readLine()!)
    }
    print(ary.count)
}
main()