
extension String: CollectionType {
    static func getValues(separator: Character = " ") -> [String] {
        return readLine()!.split(separator)
    }
}

let values = String.getValues()
let A = Int64(values[0])!
let op = values[1]
let B = Int64(values[2])!

if op == "+" {
    print("\(A + B)")
} else {
    print("\(A - B)")
}