#include <bits/stdc++.h>
using namespace std;
string scanInt() {
  string v;
  char c;
  while (!isdigit(c = getchar()))
    ;
  v.push_back(c);
  while (isdigit(c = getchar())) v.push_back(c);
  return v;
}
int shift;
string integer, decimal, newdeci;
string finint, findeci;
string::iterator decipop;
char grabdeci() {
  if (decipop == decimal.end()) return '0';
  char ret = *decipop;
  decipop++;
  return ret;
}
int main() {
  integer = scanInt();
  decimal = scanInt();
  cin >> shift;
  decipop = decimal.begin();
  for (int i = 0; i < shift; i++) {
    char push = grabdeci();
    integer.push_back(push);
  }
  copy(decipop, decimal.end(), back_inserter(newdeci));
  auto ibegin =
      find_if(begin(integer), end(integer), [](char i) { return i != '0'; });
  auto decend = find_if(newdeci.rbegin(), newdeci.rend(),
                        [](char i) { return i != '0'; });
  copy(ibegin, integer.end(), back_inserter(finint));
  copy(newdeci.begin(), decend.base(), back_inserter(findeci));
  if (finint.size() == 0)
    cout << 0;
  else
    for_each(finint.begin(), finint.end(), [](char a) { cout << a; });
  if (findeci.size() == 0)
    cout << endl;
  else {
    cout << ".";
    for_each(findeci.begin(), findeci.end(), [](char a) { cout << a; });
    cout << endl;
  }
  return 0;
}
