program bbb
implicit none

integer(8) :: a, b, k

read*, a, b, k

a = a - k

	if (a>=0) then
	print*, a, b
	return
    else
	b = b + a
		if (b>=0) then
        print*, 0, b
        return
        else
        print*, 0, 0
        return
        end if
    end if

end program