object Main extends App{
    val Array(a,b,k) = readLine().split(" ").map{_.toLong}
    
    def solve() : String = {
        val (as,bs) = if(a+b<=k){
            (0,0)
        }else if(a>=k){
            (a-k,b)
        }else{
            (0,b-k+a)
        }

        "%d %d".format(as,bs)
    }


    println(solve())    

}