program prob4
    implicit none
    integer(8) :: a,b,c
    read(*,*) a,b,c
    if(mod(a,2) == 0 .or. mod(b,2) == 0 .or. mod(c,2) == 0) then
        write(*,'(a)') '0'
        stop
    end if
    write(*,'(i19)')  min(a*b, b*c, c*a)

    stop
contains
end program prob4