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

   read(*,*) a, b, k

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

   write(*,*) a, b
end program abc149b
