program main

  implicit none
  integer(8) :: a, b, k

  read(*,*) a,b,k

  if ( a >= k ) then
    a = a - k
    b = b
  else
    if ( b >= ( k - a ) ) then
      b = b - ( k - a )
      a = 0
    else
      a = 0
      b = 0
    end if
  end if

  print*, a, b

end program main