#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
    long N,K;
    cin >> N >> K;

    rep(i,K){
        if(N%200 ==0){
            N /=200;
        }
        else{
            N = N*1000+200;
        }
    }
    
    cout << N << endl;
}
#include<bits/stdc++.h>
using namespace std;

#define endl		'\n'
#define w(t)		int t;cin>>t;while(t--)
#define int			long long
#define fr(i,a,b)	for(int i=a;i<=b;i++)
#define rep(i,a,b)	for(int i=a;i<b;i++)
#define pb 			push_back
#define ppb			pop_back
#define mp			make_pair
#define all(x)		x.begin(),x.end()
#define ff			first
#define ss			second
#define pii			pair<int,int>
#define vi			vector<int>
#define vvi			vector<vi>
#define pqi			priority_queue<int>
#define pqd			priority_queue<int,vi,greater<int>>
#define inf			1e18
#define mod			1000000007
#define PI 			3.14159265358979323846264338327950288419716939937510


int32_t main() {

	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);

		
	int n,k;
	cin>>n>>k;
	rep(i,0,k){
		if(n%200==0)
			n/=200;
		else{
			n*=1000;
			n+=200;
		}
	}

	cout<<n<<endl;
	

	return 0;
}