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]
for _ in 1...k{
  if a>=1{
    a-=1
  }else if b>=1{
    b-=1
  }
}
print(a,b)

