unittest
{
	assert( [ "3 3 3" ].parse.expand.solve == 9 );
	assert( [ "2 2 4" ].parse.expand.solve == 0 );
	assert( [ "5 3 5" ].parse.expand.solve == 15 );
}



import std.algorithm;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto abc = input.front.split.to!( long[] );
	return tuple( abc[ 0 ], abc[ 1 ], abc[ 2 ] );
}

auto solve( long a, long b, long c )
{
	auto ans = long.max;
	ans = min( ans, ( a * b * ( c * 0.5 ).ceil.to!long ) - ( a * b * ( c * 0.5 ).floor.to!long ) );
	ans = min( ans, ( a * c * ( b * 0.5 ).ceil.to!long ) - ( a * c * ( b * 0.5 ).floor.to!long ) );
	ans = min( ans, ( b * c * ( a * 0.5 ).ceil.to!long ) - ( b * c * ( a * 0.5 ).floor.to!long ) );
	return ans;
}
