import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val a, b, k = sc.nextLong
  val ta = if ((a - k) >= 0) a - k else 0
  val ao = if ((a - k) >= 0) b else b - (k - a)
  println(ta + " " + ao)

}
