fun main(){
    val (a,b,k) = readLine()!!.split(" ").map{it.toLong()}
    val ans1 = Math.max(a-k,0)
    var ans2:Long
    if(ans1 == 0.toLong()){
        ans2 = Math.max(b-k+a,0)
    }else{
        ans2 = b
    }
    println("%s %s".format(ans1,ans2))
}