object Main extends App {
  var Array(a,b,k) = readLine.split(" ").map{_.toLong}
  
  if (a <= k) {
    k -= a
    a = 0
  } else {
    a -= k
    k = 0
  }
  
  if (k > 0) {
    if (b <= k) b = 0 else b -= k
  }
  
  println(s"$a $b")
}