      PROGRAM GreedyTakahashi
      IMPLICIT NONE
      integer(16) :: a,b,k
      integer(16) :: sub1
      integer :: flag
      
      read*,a,b,k
      
      if( a+b>=k )then
        print*,0,0
      else if( a>=k )then
        print*,0,b-(k-a)
      else
        print*,(a-k),b
      endif
      
      
      
      
      END PROGRAM