program cuboid
  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(*,*) 0
  else
     write(*,*) min(A*B, B*C, C*A)
  end if
  stop
end program cuboid