#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int b = 0, e = s.size() - 1;
  while (s[b] == '0') ++b;
  int ex = 0;
  while (s[b] == '.') {
    swap(s[b], s[b + 1]);
    if (s[b] == '0') b++;
    ex--;
  }
  int px = -1;
  for (int i = b; i <= e; i++)
    if (s[i] == '.') px = i;
  if (px == -1) {
    s.push_back('.');
    px = ++e;
  }
  for (int j = px; j - 1 > b; j--) {
    swap(s[j], s[j - 1]);
    ++ex;
  }
  while (s[e] == '0') {
    --e;
    s.pop_back();
  }
  if (s.back() == '.') s.pop_back();
  for (int i = b; i < s.size(); i++) cout << s[i];
  if (ex != 0)
    cout << "E" << ex << '\n';
  else
    cout << '\n';
  return 0;
}
