You Are Given a Decimal String...

CodeForces - 1202B