import java.io.{BufferedOutputStream, BufferedReader, InputStreamReader, PrintWriter}

object Main {
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val out = new PrintWriter(new BufferedOutputStream(System.out))
    val Array(a, b, k) = in.readLine().split("\\s+").map(_.toLong)

    val takahashi = Math.max(0, a - k)
    val aoki = Math.max(0, b - (k - (a - takahashi)))

    out.println(List(takahashi, aoki).mkString(" "))

    out.flush()
  }
}
