program abc149_b
	implicit none
	integer(8) :: A, B, K
    read(*, *) A, B, K
    
    if( K >= A+B ) then
    	print *, 0, 0
    else if( A <= K .and. K < A+B ) then
    	print *, 0, B-K+A
    else
    	print *, A-K, B
    endif
end program abc149_b