import Foundation

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

func mainC() {
    let N = Int(readLine()!)!
    
    let S = (1...N).map { _ in readLine()! }
    
    print(Set(S).count)
}

mainC()
