
import java.lang.Long.max

fun main (args:Array<String>){
    val (A, B, K) = readLine()!!.split(" ").map(String::toLong)

    val lastA = max(A - K, 0)
    val lastB = max(B - max((K - A - lastA), 0), 0)

    print(lastA)
    print(" ")
    print(lastB)
}