fun main(args:Array<String>) {
    val (a,b,k) = readLine()!!.split(" ").map { it.toLong() }
    val lastA = Math.max(a-k, 0)
    val remain = if(lastA > 0) 0 else k - a
    val lastB = Math.max(b - remain, 0)
    println("%s %s".format(lastA, lastB))
}

