object Main {
  def main(args:Array[String]) {
    val read = readLine()
    var A = read.split(' ')(0).toLong
    var B = read.split(' ')(1).toLong
    val K = read.split(' ')(2).toLong

    var a = 0l
    var b = 0l
    a = A - K
    if(0 < a) println(a + " " + B)
    else {
      b = B - math.abs(a)
      if(0 < b) println("0 " + b)
      else println("0 0")
    }
  }
}

