program contest
  implicit none

  integer :: a, b, c, d

  read(*,*) a, b, c

  if( mod(a,2)==0 ) then
     d = 0
  else if( mod(b,2)==0 ) then
     d = 0
  else if( mod(c,2)==0 ) then
     d = 0
  else if( a>=b .and. a>=c ) then
     d = b*c
  else if( b>=a .and. b>=c ) then
     d = a*c
  else if( c>=a .and. c>=b ) then
     d = b*a
  end if

  write(*,*) d

  stop
end program contest