#include <bits/stdc++.h>
using namespace std;
int n, m, cnt, len, l, r, now;
string a, ans;
int main() {
  int i, j, k, t;
  cin >> a;
  len = a.length();
  for (now = 0; now < len && a[now] != '.'; now++)
    ;
  if (a[l] == '.') l++;
  if (a[r] == '.') r--;
  for (l = 0; a[l] == '0'; l++)
    ;
  if (a[l] == '.')
    for (l++; a[l] == '0'; l++)
      ;
  for (r = len - 1; a[r] == '0'; r--)
    ;
  if (a[r] == '.')
    for (r--; a[r] == '0'; r--)
      ;
  ans += a[l];
  if (r != l) {
    ans += '.';
    for (i = l + 1; i <= r; i++)
      if (a[i] != '.') ans += a[i];
  }
  cnt = now - (l + 1);
  if (l + 1 > now) cnt++;
  cout << ans;
  if (cnt) cout << "E" << cnt;
  cout << endl;
  return 0;
}
