let () = Scanf.scanf "%d %d %d" @@ fun a b k -> 
  let (takahashi, aoki) = 
    if k <= a
    then ((a-k), b)
    else 
      if (k-a) <= b
      then (0, (b-k+a))
      else (0, 0) in
  Printf.printf "%d %d\n" takahashi aoki