// Problem: B - 200th ABC-200
// Contest: AtCoder - KYOCERA Programming Contest 2021（AtCoder Beginner Contest 200）
// URL: https://atcoder.jp/contests/abc200/tasks/abc200_b
// Memory Limit: 1024 MB
// Time Limit: 2000 ms
// Made by Licykoc 
// 
// Powered by CP Editor (https://cpeditor.org)
#include<bits/stdc++.h>
#define int long long
#define UP(x,l,r) for (int x=l;x<=r;++x)
#define DOWN(x,l,r) for (int x=l;x>=r;--x)
#define IOS ios::sync_with_stdio(0),cin.tie(0)
#define low(x) (x&(-x))
#define fi first
#define se second
#define pb push_back
#define isdigit(c) (c>='0'&&c<='9')
using namespace std;
inline void read (int &x) {
	char c=getchar(); int w=0; x=0;
	for (;!isdigit(c);c=getchar()) w^=!(c^45);
	for (;isdigit(c);c=getchar()) x=(x*10)+(c^48);
	x=w?-x:x;
}
int n,T;
signed main () {
	read(n),read(T);
	while (T--) {
		if (!(n%200)) n/=200; else n=n*1000ll+200;
	}
	printf("%lld\n",n);
}
#include <bits/stdc++.h>

using namespace std;
typedef unsigned long long ll;

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    ll n, k;
    cin>>n>>k;

    while(k--){
        if(n%200==0){
            n/=200;
        }
        else{
            n*=1000;
            n+=200;
        }
    }
    cout<<n;

    return 0;
}
