import scala.io.StdIn._

object Main extends App {


  val Array(a,b,k) = readLine().split(" ").map(_.toLong)

  def solve() = {
    val x = Math.max(a-k,0)
    val y = Math.max(b-Math.max(k-a,0),0)
    s"$x $y"
  }

  println(solve())

}

