func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}
let abk=readInts()
var a=abk[0]
var b=abk[1]
var k=abk[2]
var rest=k
if a-k>=0{
  a-=k
}else{
  rest=k-a
  a=0
  if b-rest>=0{
    b-=rest
  }else{
    b=0
  }
}
print(a,b)