import java.util.Scanner

object Main {
  def main(args: Array[String]) {
    val result = solve(new Scanner(System.in))
    if (result.length > 0) println(result)
  }

  def solve(in: String): String = solve(new Scanner(in))

  def solve(sc: Scanner): String = {
    val A = sc.nextLong
    val B = sc.nextLong
    val K = sc.nextLong

    if (A > K) {
      "%d %d".format(A - K, B)
    } else if (A + B > K) {
      "0 %d".format(A + B - K)
    } else "0 0"
  }
}
