#include <iostream>
#include <string>
using namespace std;

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

	for (int i = 0; i < K; i++) {
		if (N % 200 == 0) {
			N /= 200;
		}
		else {
			N *= 1000;
			N += 200;
		}
	}

	cout << N << endl;
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

#define REP(i,n) for(ll i=0;i<ll(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<ll(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=ll(b);i--)
#define FORA(i,I) for(const auto& i:I)

#define ALL(x) x.begin(),x.end()
#define SIZE(x) ll(x.size())

#define INF (int)1e9
#define LLINF (ll)1e12
#define MOD (int)1e9+7
#define PB push_back
#define endl "\n"

#define YESNO(T) if(T){cout<<"YES"<<endl;}else{cout<<"NO"<<endl;}
#define yesno(T) if(T){cout<<"yes"<<endl;}else{cout<<"no"<<endl;}
#define YesNo(T) if(T){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
#define PRINT(I) cout<<(I)<<endl

void solve() {
    ll n,k;
    cin >> n >> k;
    REP(i,k){
      if(n%200==0){
        n /= 200;
      }else{
        n = n*1000+200;
      }
    }
    cout << n << endl;

}

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    solve();
    return 0;
}