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

signed main() {
    ll N, K;
    cin >> N >> K;
    rep(i,K)
    {
        if(N % 200 == 0) 
        {
            N /= 200;
        }
        else
        {
            string s = to_string(N) + "200";
            N = stoll(s);
        }
    }
    cout << N << endl;
}
#include <iostream>
#include <bitset>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <cassert>
#include <functional>
#include <iomanip>
#include <unordered_set>
using namespace std;
typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int gcd(ll x, ll y) {
    if(x % y == 0) {
        return y;
    } else {
        return gcd(y, x % y); 
    }
}

int main(){
      ll n,k;
      cin >> n >> k;

      string s;

      for(int i = 0; i< k; i++){
          if(n%200 == 0) n/=200;
          else {
              s = to_string(n);
              s +=  "200";

              n = stoll(s);
          }
      }

      cout << n << endl;
      return 0;
}