#include <bits/stdc++.h>
using namespace std;
int len;
char num[10000020];
int main() {
  int x, y, dot, ex;
  scanf("%s", &num);
  len = strlen(num);
  dot = len;
  for (int i = 0; i < len; i++)
    if (num[i] == '.') dot = i;
  x = 0;
  y = len - 1;
  while (x < len && (num[x] == '0' || num[x] == '.')) x++;
  while (y >= 0 && (num[y] == '0' || num[y] == '.')) y--;
  if (x <= dot)
    ex = dot - x - 1;
  else
    ex = dot - x;
  cout << num[x];
  if (x != y) cout << '.';
  for (int i = x + 1; i <= y; i++)
    if (num[i] != '.') cout << num[i];
  if (ex == 0)
    cout << endl;
  else
    cout << "E" << ex << endl;
  return 0;
}
