let is_even n = (n mod 2 = 0)

let () =
	Scanf.scanf "%d %d %d\n" (fun a b c ->
		if List.exists is_even [a; b; c] then
			Printf.printf "0\n"
		else
			List.sort compare [a * b; b * c; c * a]
			|> List.hd
			|> Printf.printf "%d\n"
	)
