#include<iostream>
#include<cstdio>
#include<vector>
#include<cstring>
#include<algorithm>
using namespace std;
typedef long long ll;

const int p=1e9+7;
int main(){
ios::sync_with_stdio(false); cin.tie(0);
ll n,k;
cin>>n>>k;
while(k--){
if(n%200==0) n/=200;
else n=n*1000+200;
}
cout<<n;
}

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fi(a,b) for(int i=(a);i<(b);i++)
#define fj(a,b) for(int j=(a);j<(b);j++)
#define pb(n) push_back(n)
string ts(int a){
	string q="";
	while(a!=0){
		q+=a%10+48;
		a/=10;
	}
	return q;
}
int main(){
	string s;
	ll n,k;
	cin>>s>>k;
	istringstream iss(s);
	iss>>n;
	fi(0,k){
		if(n%200==0){
			n/=200;
			s=to_string(n);
		}
		else{
			s+="200";
			istringstream iss(s);
			iss>>n;
		}
		//cout<<n<<' '<<s<<endl;
	}
	cout<<n;
	return 0;
}
