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