#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000005;
char str1[maxn];
char str2[maxn];
int main() {
  cin >> str1;
  int len_str1 = strlen(str1);
  int point = len_str1;
  for (int i = 0; i < len_str1; i++)
    if (str1[i] == '.') {
      point = i;
      break;
    }
  int flag_point;
  int len_str2;
  for (int i = 0; i < len_str1; i++) {
    if (str1[i] > '0' && str1[i] <= '9') {
      str2[0] = str1[i];
      str2[1] = '.';
      flag_point = i + 1;
      len_str2 = 1;
      for (int j = i + 1; j < len_str1; j++)
        if (str1[j] >= '0' && str1[j] <= '9') str2[++len_str2] = str1[j];
      break;
    }
  }
  for (int i = len_str2; i >= 1; i--) {
    if (str2[i] == '0' || str2[i] == '.')
      len_str2--;
    else
      break;
  }
  for (int i = 0; i <= len_str2; i++) printf("%c", str2[i]);
  if (point != flag_point)
    point > flag_point ? printf("E%d\n", point - flag_point)
                       : printf("E%d\n", point - flag_point + 1);
  return 0;
}
