#include <iostream>
#include <cstdlib>
#include <cmath>

using namespace std;

int main(void)
{
    int c, k, z;
    cin >> c >> k;
    
    z = (c - c % int(pow(double(10),k)));
    if (c % int(pow(double(10),k)) >= int(pow(double(10),k)) / 2)
       z += int(pow(double(10),k));
       
    cout << z;
    return 0; 
}
