program main
  implicit none

  integer(4) :: 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 main
