unittest
{
	assert( [ "-13 3" ].parse.expand.solve == -10 );
	assert( [ "1 -33" ].parse.expand.solve == 34 );
	assert( [ "13 3" ].parse.expand.solve == 39 );
}



import std.algorithm;
import std.conv;
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 ab = input.front.split.to!( long[] );
	return tuple( ab[ 0 ], ab[ 1 ] );
}

auto solve( long a, long b )
{
	return max( a + b, a - b, a * b );
}
