import std.stdio, std.conv, std.math, std.string, std.range, std.array,
       std.algorithm;

void main(){
    auto buf = readln().strip().split().map!(to!int)().array();

    if(buf[0]%2 == 0 || buf[1]%2 == 0 || buf[2]%2 == 0) {
        writeln(0);
        return;
    }

    sort(buf);

    writeln(cast(long)buf[0]*buf[1]);
}
