#include <bits/stdc++.h>
const int MAXN = 102;
char C[MAXN];
int b, it;
bool num, dec, dot;
int main() {
  char c;
  for (int i = 0;; ++i) {
    scanf("%c", &c);
    if (c == '.') {
      scanf("%c", &c);
      dot = 1;
    }
    if (dot && c >= '1' && c <= '9') dec = 1;
    if (c >= '1' && c <= '9') num = 1;
    if (c == 'e') break;
    C[i] = c;
  }
  scanf("%d", &b);
  b++;
  if (num == 0) {
    printf("0");
    return 0;
  }
  if (!dec) {
    printf("%c", C[0]);
    b--;
    while (b) {
      printf("0");
      b--;
    }
    return 0;
  }
  for (it = 0; C[it] && b; ++it) {
    printf("%c", C[it]);
    b--;
  }
  if (b == 0 && C[it]) {
    printf(".");
    while (C[it]) {
      printf("%c", C[it]);
      it++;
    }
  }
  if (b > 0) {
    while (b) {
      printf("0");
      b--;
    }
  }
  return 0;
}
