#include <bits/stdc++.h>
using namespace std;
string s, A, B;
int main() {
  cin >> s;
  int n = s.length();
  int e = 0, in = 0, d = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'e') e = i;
    if (s[i] == '.') in = i;
    if (e == 0) A += s[i];
    if (s[i] != 'e' && s[i] != '.' && e != 0) B += s[i];
  }
  for (int i = 0; i < B.length(); i++) d = d * 10 + (B[i] - '0');
  int h = A.length() - 1;
  if (in != 0)
    while (h >= in && A[h] == '0') A.pop_back(), h--;
  if (h == in || in == 0) {
    if (A.back() == '.') A.pop_back();
    cout << A;
    for (int i = 1; i <= d; i++) cout << "0";
    return 0;
  }
  while (d != 0 && in < A.length() - 1) swap(A[in], A[in + 1]), in++, d--;
  if (A.back() == '.') A.pop_back();
  cout << A;
  for (int i = 1; i <= d; i++) cout << "0";
}
