t=gets.to_i n=gets.to_i x=t/n r=10**(x.to_s.length-1) a=x/r*r p a < 1000 ? 0 : a