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)();
    immutable A = buf[0];
    immutable B = buf[1];
    immutable C = buf[2];

    if(A%2 == 0 || B%2 == 0 || C%2 == 0) {
        writeln(0);
        return;
    }

    auto ans = cast(long)A*B*C / max(A,B,C);

    writeln(ans);
}
