unittest
{
	assert( [ "3 5 2 7" ].parse.expand.solve == 15 );
	assert( [ "100 600 200 300" ].parse.expand.solve == 60000 );
}



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 abcd = input.front.split.to!( long[] );
	return tuple( abcd[ 0 ], abcd[ 1 ], abcd[ 2 ], abcd[ 3 ] );
}

auto solve( long a, long b, long c, long d )
{
	auto ab = a * b;
	auto cd = c * d;
	return ( ab < cd ) ? cd : ab;
}
