Problem: You are given a positive decimal number x.

Your task is to convert it to the "simple exponential notation".

Let x = a·10b, where 1 ≤ a < 10, then in general case the "simple exponential notation" looks like "aEb". If b equals to zero, the part "Eb" should be skipped. If a is an integer, it should be written without decimal point. Also there should not be extra zeroes in a and b.

Input

The only line contains the positive decimal number x. The length of the line will not exceed 106. Note that you are given too large number, so you can't use standard built-in data types "float", "double" and other.

Output

Print the only line — the "simple exponential notation" of the given number x.

Examples

Input

16


Output

1.6E1


Input

01.23400


Output

1.234


Input

.100


Output

1E-1


Input

100.


Output

1E2

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
const long long maxn = 2e5 + 10, N = 3e6, SQ = 1000, base = 800287,
                mod = 1e9 + 7, INF = 1e9 + 10, lg = 22;
const long double eps = 1e-4;
long long n, is;
string s;
long long getL() {
  for (long long i = 0; i < n; ++i) {
    if (s[i] != '0') {
      return i;
    }
  }
}
long long getR() {
  for (long long i = n - 1; i >= 0; --i) {
    if (s[i] != '0') {
      return i;
    }
  }
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  n = (long long)s.size();
  for (long long i = 0; i < n; ++i) {
    is |= (s[i] == '.');
  }
  if (!is) {
    long long l = getL(), r = getR();
    long long cnt = n - r - 1 + (r - l);
    cout << s[l];
    if (r > l) {
      cout << '.';
    }
    for (long long i = l + 1; i <= r; ++i) {
      cout << s[i];
    }
    if (cnt != 0) cout << 'E' << cnt << '\n';
  } else {
    long long l = getL(), r = getR();
    if (s[l] == '.') {
      l++;
      long long cnt = 1;
      while (l < n && s[l] == '0') {
        l++;
        cnt++;
      }
      cout << s[l];
      if (r > l) {
        cout << '.';
      }
      for (long long i = l + 1; i <= r; ++i) {
        cout << s[i];
      }
      if (cnt != 0) cout << 'E' << -cnt;
      return 0;
    }
    if (s[r] == '.') {
      r--;
      long long cnt = r - l;
      while (r >= 0 && s[r] == '0') {
        r--;
      }
      cout << s[l];
      if (r > l) {
        cout << '.';
      }
      for (long long i = l + 1; i <= r; ++i) {
        cout << s[i];
      }
      if (cnt != 0) cout << 'E' << cnt << '\n';
      return 0;
    }
    long long cnt = 0;
    for (long long i = l + 1; i < n && s[i] != '.'; ++i) {
      cnt++;
    }
    cout << s[l] << '.';
    for (long long i = l + 1; i <= r; ++i) {
      if (s[i] != '.') {
        cout << s[i];
      }
    }
    if (cnt != 0) cout << 'E' << cnt;
  }
}