object Main extends App {
  val array: Array[Int] = readLine().split(' ').map(_.toInt)
  val A: Int = array(0)
  val B: Int = array(1)
  val K: Int = array(2)

  if (A + B <= K) {
    println("0 0")
  } else if (A >= K) {
    println((A - K).toString + " " + B.toString)
  } else {
    println("0 " + (A + B - K).toString)
  }
}
