object Main extends App {
  import scala.io.StdIn._
  val Array(a,b,k) = readLine().split(" ").map(_.toLong)
  val ansA = List(a-k,0).max
  val ansB = List(b-List(k-a,0).max,0).max
  println(s"$ansA $ansB")
}