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