fun main(args: Array<String>){
    val inputs = readLine()!!.split(" ").map { it.toLong() }
    val a = inputs[0]
    val b = inputs[1]
    val k = inputs[2]
    println(Math.max(a - k, 0).toString() + " " + Math.max(Math.min(b - (k - a), b), 0).toString())
}
