#include <bits/stdc++.h>
using namespace std;
const int MAX = 1000005;
const int MOD = 1e9 + 7;
int main() {
  char f;
  string dec = "";
  char c;
  scanf("%c", &c);
  f = c;
  scanf("%c", &c);
  scanf("%c", &c);
  while (c >= '0' && c <= '9') {
    dec += c;
    scanf("%c", &c);
  }
  int ex;
  cin >> ex;
  if (f == '0' && dec != "0") {
    cout << "0." << dec << endl;
  } else {
    cout << f;
    if (dec == "0") dec = "";
    if (ex < dec.length()) {
      for (int i = 0; i < ex; i++) cout << dec[i];
      cout << ".";
      for (int i = ex; i < dec.length(); i++) cout << dec[i];
    } else if (ex == dec.length()) {
      for (int i = 0; i < dec.length(); i++) cout << dec[i];
    } else {
      for (int i = 0; i < dec.length(); i++) cout << dec[i];
      for (int i = dec.length(); i < ex; i++) cout << "0";
    }
  }
}
