#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double x;
int n;
cin >> x >> n;
int y = 1;
if (x >= 1)
{
y = 1;
}
else
{
for(int i = 1; i <= n; ++i)
{
y *= 10;
}
}
x = floor(y*1.0*x)/y;
cout << x << endl;
system("pause");
return 0;
}