#include <bits/stdc++.h>
using namespace std;
long long power(long long a, long long b) {
  long long res = 1;
  a %= 1000000007;
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % 1000000007;
    a = a * a % 1000000007;
  }
  return res;
}
string a, b, c;
int q, n, t;
int arr[1000009];
int brr[1000009];
int main() {
  cin >> a;
  int len = a.size();
  int s = 0;
  int i;
  int d;
  for (int j = 0; j < len; j++)
    if (a[j] == '.') d = j;
  cerr << d << "f";
  for (i = len - 1; i >= 0; i--) {
    if (a[i] == 'e') break;
  }
  for (int j = i + 1; j < len; j++) {
    s *= 10;
    s += a[j] - '0';
  }
  int f = d + s;
  bool fl = false;
  cerr << f << " ";
  string ans = "";
  for (int i = 0; i < 1000000; i++) ans += '$';
  ans[f] = '.';
  int cur = 0;
  for (int i = 0; i < len; i++) {
    if (a[i] == 'e') break;
    if (a[i] == '.') continue;
    if (cur == f) cur++;
    if (a[i] >= '0' && a[i] <= '9') {
      ans[cur] = a[i];
      cur++;
    }
  }
  i = f - 1;
  while (ans[i] == '$') {
    ans[i] = '0';
    i--;
  }
  bool di = false;
  string fans = "";
  for (int i = 1000000; i >= 0; i--) {
    if (ans[i] == '$')
      continue;
    else if (ans[i] == '0' && di) {
      fans += ans[i];
      continue;
    }
    if (ans[i] > '0' && ans[i] <= '9' && ans[i] != '.') {
      fans += ans[i];
      di = true;
    }
    if (ans[i] == '.' && di) {
      fans += ans[i];
      di = true;
    }
    if (ans[i] == '.' && !di) di = true;
  }
  reverse(fans.begin(), fans.end());
  cout << fans;
}
