import java.util.Scanner

object Main extends App {

  val sc = new Scanner(System.in)

  val a = sc.nextLong
  val b = sc.nextLong
  val k = sc.nextLong

  val takahashi = Math.max(a - k, 0L)
  val aoki =
    if(a >= k) b
    else Math.max(0L, a + b - k)

  println(s"$takahashi $aoki")
}