#include <cstdio>
#include <cstdlib>

using namespace std;

int c,k;
double ost1,ost2;

int pot(int x) {
	if (x==0) return 1;
	return 10*pot(x-1);
}

int main(void) {
	scanf("%d %d",&c,&k);
	k=pot(k);
	ost1=(double)c/(double)k;
	ost2=c/k;
	if ((ost1-ost2)<0.5)
		printf("%.0lf\n", (ost2)*k);
	else printf("%.0lf\n", (ost2+1)*k);
//	system("pause");
	return 0;
}
