fun main(args: Array<String>) {
    val n = readLine()!!.split(" ").map { it.toLong() }
    var a = n[0]
    var b = n[1]
    if (n[2] > a + b){
        println("0 0")
    } else if (n[2] > a){
        var x = n[2] - a
        b = b - x
        println("0 ${b}")
    } else {
        a = a - n[2]
        println("${a} ${b}")
    }
}