program no3

implicit double precision(A-H,O-Z)
integer NUM

DL=0.01D0

read *,L
NUM1=L/DL
Vm=0.D0
x=DL
do i=1,NUM1
	NUM2=(L-x)/DL
    	y=DL
    	do j=1,NUM2
        	z=L-x-y
            V=x*y*z
            if(Vm < V)then
            	Vm=V
            endif
        y=y+DL
        enddo
	x=x+DL
enddo

print *,Vm
end program no3