// author: Halit
#include <bits/stdc++.h>

int main() {
  std::string str; int k;
  std::cin >> str >> k;

  auto is_multiple_of_200 = [&]() {
    int size = str.size();

    if (size < 3) {
      return false;
    
    } if (str[size-1] != '0' || str[size-2] != '0') {
      return false;
    
    } if ( int(str[size-3]-'0')&1) {
      return false;
    
    } else return true;
  };

  for (int i = 0;i < k; ++i) {
    if (is_multiple_of_200()) {
      str.pop_back(); str.pop_back();
      str = std::to_string(std::stoll(str)/2);
    } else str += "200";
  }

  std::cout << str;
}
#include <iostream>
using namespace std;

long int N,K;

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



}