program slatkisi;
var c,y: real; z,k,x: longint;
begin
        readln(c);
        readln(k);
if k= 0 then k:=1;
if k= 1 then k:=10;
if k= 2 then k:=100;
if k= 3 then k:=1000;
if k= 4 then k:=10000;
if k= 5 then k:=100000;
if k= 6 then k:=1000000;
if k= 7 then k:=10000000;
if k= 8 then k:=100000000;
if k= 9 then k:=1000000000;
        x:=round (c/k) ;
         z:=k*x;

        writeln(z);
end.