fun main(args: Array<String>) {
    val input1 = readLine()!!.split(" ")
    var takahashiCookieCount = input1[0].toLong()
    var aokiCookieCount = input1[1].toLong()
    val operationCount = input1[2].toLong()

    val takahashiCookieCount2: Long
    val aokiCookieCount2: Long
    if (operationCount >= (takahashiCookieCount + aokiCookieCount)) {
        takahashiCookieCount2 = 0
        aokiCookieCount2 = 0
    } else if (takahashiCookieCount > operationCount) {
        takahashiCookieCount2 = takahashiCookieCount - operationCount
        aokiCookieCount2 = aokiCookieCount
    } else {
        takahashiCookieCount2 = 0
        aokiCookieCount2 = aokiCookieCount - (operationCount - takahashiCookieCount)
    }

    println("$takahashiCookieCount2 $aokiCookieCount2")
}
