! 2019.12.29
!
      program answer
      implicit none
      integer(8) :: A,B,K
!
      read(*,*) A,B,K
      if(A < K) then
        B = B+A-K
        A = 0
      else
        A = A-K
      end if
      write(*,*) A,B
      end program answer