import scala.io.{StdIn => in}

object Main extends App {
  val Array(a, b, k) = in.readLine.split(" ").map(_.toLong)
  val tk = (a - k) max 0l
  val ai = (b - (k - a)) max 0l
  println(tk + " " + ai)
}