#include <bits/stdc++.h>
using namespace std;
const int mx = 1e6 + 5;
char str[mx];
int main() {
  scanf("%s", str);
  int p1 = -1, p2 = -1, p3 = -1, siz = strlen(str);
  for (int i = 0; i < siz; i++) {
    if (str[i] == '.') {
      p2 = i;
      continue;
    }
    if (p1 == -1 && str[i] != '0') p1 = i;
    if (str[i] != '0') p3 = i;
  }
  if (p2 == -1) {
    printf("%c", str[p1]);
    if (p1 < p3) {
      printf(".");
      for (int i = p1 + 1; i <= p3; i++) printf("%c", str[i]);
    }
    if (siz - p1 > 1) printf("E%d", siz - 1 - p1);
    printf("\n");
  } else {
    if (p3 < p2) {
      printf("%c", str[p1]);
      if (p1 < p3) {
        printf(".");
        for (int i = p1 + 1; i <= p3; i++) printf("%c", str[i]);
      }
      if (p2 - p1 > 1) printf("E%d", p2 - p1 - 1);
      printf("\n");
    } else {
      if (p1 < p2) {
        printf("%c.", str[p1]);
        for (int i = p1 + 1; i <= p3; i++) {
          if (i == p2) continue;
          printf("%c", str[i]);
        }
        if (p2 - p1 > 1) printf("E%d", p2 - p1 - 1);
        printf("\n");
      } else {
        printf("%c", str[p1]);
        if (p1 < p3) printf(".");
        for (int i = p1 + 1; i <= p3; i++) {
          printf("%c", str[i]);
        }
        printf("E-%d", p1 - p2);
        printf("\n");
      }
    }
  }
  return 0;
}
