const Main = (input) => {
  const Sarr = input.trim().split(' ').map(Number)

  var result = 0
  var haveEven = false

  for (var i = 0; i < Sarr.length; i++) {
    if ((Sarr[1] % 2) === 0) {
      haveEven = true
    }
  }

  if (haveEven === false) {
    result = Math.min(
      Sarr[0] * Sarr[1],
      Sarr[0] * Sarr[2],
      Sarr[1] * Sarr[2])
  }

  console.log(result)
  return result
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))