fun main(args: Array<String>) {
    val (A, B, C) = readLine()!!.split(" ").map(String::toLong)
    val AC = Math.max(A - C, 0)
    val BC = if (A < C) {
        Math.max(B - (C - A), 0)
    } else {
        B
    }
    println("$AC $BC")
}

