import Foundation

func main() {
let inputString = readLine()!
var split: [Int] = inputString.components(separatedBy: " ").map{Int(String($0))!}
split.sort()
if (split[0]%2==0||split[1]%2==0||split[2]%2==0) {
  print(0)
  return
}
print(split[0]*split[1])
}

main()