#include <bits/stdc++.h>
using namespace std;
void solutionB();
int main() {
  ios_base::sync_with_stdio(false);
  solutionB();
  return EXIT_SUCCESS;
}
string s;
void solve() {
  string a, d, b;
  long long p = 0;
  while (isdigit(s[p])) {
    a += s[p];
    ++p;
  }
  ++p;
  while (isdigit(s[p])) {
    d += s[p];
    ++p;
  }
  ++p;
  while (p < s.size()) {
    b += s[p];
    ++p;
  }
  cerr << a << ", " << d << ", " << b << endl;
  long long n = atoi(b.c_str());
  if (d == "0") {
    cout << a;
    for (long long i = 0; i < n; ++i) cout << 0;
    cout << endl;
  } else {
    cout << a;
    if (d.size() <= n) {
      cout << d;
      for (long long i = d.size(); i < n; ++i) cout << 0;
    } else {
      cout << d.substr(0, n) << "." << d.substr(n);
    }
    cout << endl;
  }
}
void solutionB() {
  for (; cin >> s;) {
    solve();
    cerr << endl;
  }
}
