import Foundation

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

func readStr() -> [String] {
  let str:String = readLine()!
  let arr:[String] = str.components(separatedBy: " ")
  return arr
}

let abk=readInts()
let a=abk[0]
var b=abk[1]
let k=abk[2]
let ak=max(0,a-k)
if(a<k) {b=max(0,a+b-k)}
print("\(ak) \(b)")