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

      read *, a, b, k

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

      print *, a, b

end program main
