#include <bits/stdc++.h>
using namespace std;
int find_coma(char* s) {
  for (int i = 0; s[i] != '\0'; ++i)
    if (s[i] == '.') return i;
  return -1;
}
int last_zeros(char* s, int last) {
  int res = 0;
  while (s[last - res - 1] == '0') res++;
  return res;
}
int leading_zeros(char* s) {
  int res = 0;
  while (s[res] == '0') res++;
  return res;
}
bool all_last_zeros(char* s, int pos) {
  while (s[pos] == '0') pos++;
  if (s[pos] == '\0') return true;
  if (s[pos] == '.') {
    pos++;
    while (s[pos] == '0') pos++;
    if (s[pos] == '\0') return true;
  }
  return false;
}
int main(int argc, const char* argv[]) {
  char* str;
  str = (char*)malloc(sizeof(char) * (1000009));
  scanf("%s", str);
  int len = strlen(str);
  bool neg = false;
  if (str[0] == '-') {
    neg = true;
    len--;
    str++;
  }
  int begin = leading_zeros(str);
  str += begin;
  len -= begin;
  if (len == 0) {
    printf("0\n");
    return 0;
  }
  int coma = find_coma(str);
  if (str[coma + 1] == '\0') {
    coma = -1;
    str[coma] = '\0';
    len--;
  }
  if (coma != -1) {
    len -= last_zeros(str, len);
    str[len] = '\0';
    int b = coma - 1;
    if (coma == 0) {
      int pos = 1;
      while (str[pos] == '0') pos++;
      if (str[pos] == '\0') {
        printf("0\n");
        return 0;
      }
      b = b + 1 - pos;
      str += pos;
      if (neg) putchar('-');
      putchar(str[0]);
      str++;
      if (!all_last_zeros(str, 0)) {
        putchar('.');
        printf("%s", str);
      }
    } else {
      if (neg) putchar('-');
      putchar(str[0]);
      if (coma == len - 1) {
        len -= 1;
        str[len] = '\0';
        len -= last_zeros(str, len);
        str[len] = '\0';
      }
      if (!all_last_zeros(str, 1)) putchar('.');
      str[coma] = '\0';
      str++;
      printf("%s", str);
      str += coma;
      printf("%s", str);
    }
    if (b != 0) {
      putchar('E');
      printf("%d", b);
    }
  } else {
    if (neg) putchar('-');
    putchar(str[0]);
    if (!all_last_zeros(str, 1)) putchar('.');
    int b = len - 1;
    for (int i = 1; str[i] != '\0'; ++i) {
      if (all_last_zeros(str, i))
        break;
      else
        putchar(str[i]);
    }
    if (b > 0) {
      putchar('E');
      printf("%d", b);
    }
  }
  putchar('\n');
  return 0;
}
