object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val ls = in(0).split(' ').map(_.toLong)
  val A = ls(0)
  val B = ls(1)
  val K = ls(2)
  if(K <= A){
    print((A-K) + " " + B)
  }else if(A < K && K<=A+B){
    print("0 " + (A+B-K))  
  }else{
    print("0 0")
  }
}
