//DFSテンプレート
fun main(args: Array<String>) {
    var (A, B, K) = listOfLong()
    val a = A - Math.min(A, K)
    val b = B - Math.min(B, K - (Math.min(K, A - a)))
    println("${a} ${b}")
}
fun next() = readLine()!!
fun listOfString() = next().split(" ")
fun listOfLong(delta: Long = 0L) = listOfString().map { java.lang.Long.parseLong(it) + delta }