#include <bits/stdc++.h>
using namespace std;
int main() {
  char str[1024];
  while (~scanf("%s", str)) {
    int a, b, d = 0;
    for (int i = strlen(str) - 1; i >= 0; i--) {
      if (str[i] == 'e') {
        i++;
        while (str[i]) {
          d = d * 10 + str[i] - 48;
          i++;
        }
        break;
      }
    }
    for (int i = 0; str[i]; i++) {
      if (str[i] == '.') {
        while (d && str[i + 1] != 'e') {
          swap(str[i], str[i + 1]);
          i++;
          d--;
        }
        break;
      }
    }
    bool output = 0;
    for (int i = 0; str[i]; i++) {
      if (output == 0 && str[i] == '0') continue;
      if (str[i] == '.') {
        bool temp = 0;
        for (int j = i + 1; str[j] != 'e'; j++) {
          if (str[j] != '0') {
            temp = 1;
            break;
          }
        }
        if (temp == 0 && output == 0) {
          cout << "0" << endl;
          break;
        } else if (temp == 0 && output == 1) {
          while (d--) putchar('0');
          putchar('\n');
          break;
        } else if (temp == 1 && output == 0) {
          printf("0");
          output = 1;
        }
      }
      if (str[i] == 'e' && output == 0) {
        puts("0");
        break;
      }
      if (str[i] == 'e' && output == 1) {
        while (d--) putchar('0');
        putchar('\n');
        break;
      }
      putchar(str[i]);
      output = 1;
    }
  }
}
