unittest
{
	assert( [ "3 5 7" ].parse.expand.solve == 10 );
	assert( [ "3 2 9" ].parse.expand.solve == 6 );
	assert( [ "20 20 19" ].parse.expand.solve == 0 );
}



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

auto solve( long a, long b, long t )
{
	return t / a * b;
}
