unittest
{
	assert( [ "700 600 780" ].parse.expand.solve == 1300 );
	assert( [ "10000 10000 10000" ].parse.expand.solve == 20000 );
}



import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.string;
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 );
}

auto solve( long[] abc )
{
	return abc.sort().take( 2 ).sum;
}
