import Foundation

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

func main(){
    let n = Int(readLine()!)!
    var ary = [String]()
    let counter = [Int](repeating: 1, count: n)
    for _ in 1...n {
        ary.append(readLine()!)
    }
    
    print(Dictionary(zip(ary, counter),uniquingKeysWith: +).count)
    
    
}

main()
