program sample
	implicit none
    integer :: x,y,z,a,b,c,d
    
    read(*,*) x,y,z
    
    if (mod(x,2)/=0 .and. mod(y,2)/=0 .and. mod(z,2) /=0) then
    	if (x<=y) then
        	if (y>z) then
            	a=y
                b=z
                y=b
                z=a
            end if
            write(*,*) x*y
        else
        	a=x
            b=y
            x=b
            y=a
            if (y>z) then
            	c=y
                d=z
                y=d
                z=c
            end if
           	write(*,*) x*y
        end if
    else
    	write(*,*) 0
    end if
    
    stop
end program sample