#include<iostream>
#include<cstdio>
#include<ctime>
#include<cmath>

using namespace std;

int main(){
    float c, k;
    scanf("%f %f", &c, &k);
    float x=pow(10, k);
    float y=c/x;
    int sol = (int)x*static_cast<int>(y + 0.5);
    if(sol==0) sol=1*(int)x;
    printf("%d\n", sol);
    

//system("pause");
return 0;
}
