fun main(args:Array<String>){
    var (a,b,k) = readLine()!!.split(" ").map{it.toLong()}
    val t : Long = Math.min(a,k)
    a -= t
    k -= t
    if(k > 0) b = Math.max(0L, b - k)
    println(a.toString() + " " + b)
}