object Main extends App {
    val input = io.StdIn.readLine().split(' ').map(_.toLong)
    var a = input(0)
    var b = input(1)
    val k = input(2)

    for(i <- 1 to k){
        if(a >= 1) a -= 1
        else if(b >= 1) b -= 1
    }

    println(s"$a $b")
}