fun main(args: Array<String>) {
  val (A,B,K) = readLine()!!.split(" ").map(String::toLong)
  if (A-K >= 0) {
    println("${A-K} $B")
  } else if (A-K < 0 && B-(K-A) >= 0) {
    println("0 ${B-(K-A)}")
  } else {
    println("0 0")
  }
}