object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val takahashi = sc.nextBigDecimal()
    val aoki = sc.nextBigDecimal()
    val total = sc.nextBigDecimal()

    val result = takahashi.subtract(total)

    if (result.compareTo(BigDecimal(0)) >= 0) {
      println(s"$result $aoki")
    } else {
      val aokiResult = aoki.add(result)
      val aokiFinalResult = aokiResult.max(BigDecimal(0))

      println(s"0 $aokiFinalResult")
    }
  }
}
