#include <bits/stdc++.h>
using namespace std;
int main() {
  char c = getchar();
  putchar(c);
  c = getchar();
  c = getchar();
  deque<int> d;
  while (c != 'e') {
    d.push_back(c - '0');
    c = getchar();
  }
  int b;
  cin >> b;
  for (int i = 0; i < b; i++) {
    if (d.empty()) {
      cout << 0;
    } else {
      cout << d[0];
      d.pop_front();
    }
  }
  if (d.size() == 1 && d[0] == 0) return 0;
  if (!d.empty()) {
    cout << '.';
  }
  while (!d.empty()) {
    cout << d[0];
    d.pop_front();
  }
}
