#include <bits/stdc++.h>
using namespace std;
char s[1000];
int main() {
  scanf("%s", s + 1);
  int p1, p2, n = strlen(s + 1);
  for (__typeof(1) i = 1; i <= n; i++)
    if (s[i] == '.')
      p1 = i;
    else if (s[i] == 'e')
      p2 = i;
  int m;
  sscanf(s + p2 + 1, "%d", &m);
  for (__typeof(p2) i = p2; i <= p1 + m; i++) s[i] = '0';
  for (__typeof(p1 + 1) i = p1 + 1; i <= p1 + m; i++) s[i - 1] = s[i];
  s[p1 + m] = '.';
  int j = 1;
  while (j != p1 + m - 1 && s[j] == '0') j++;
  for (__typeof(j) i = j; i <= max(p2, p1 + m) - 1; i++) {
    if (s[i] == '.' && i == max(p2, p1 + m) - 1) continue;
    if (s[i] == '.' && i == max(p2, p1 + m) - 2 && s[i + 1] == '0') break;
    putchar(s[i]);
  }
  puts("");
  return 0;
}
