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;
const int N = 1e5 + 100;
void solve() {
  string s;
  cin >> s;
  string l, r, ans;
  int i, j;
  int len1 = s.length();
  for (j = len1 - 1; j >= 0; j--) {
    if (s[j] < '0' || s[j] > '9') continue;
    break;
  }
  string s2(s.begin(), s.begin() + j + 1);
  s = s2;
  int len = s.length();
  for (i = 0; i < len1; i++) {
    if (s[i] == '0') continue;
    break;
  }
  if (s[i] == '.') {
    int x = 1;
    for (int m = i + 1; m < len; m++) {
      if (s[m] == '0') {
        x++;
        continue;
      }
      i = m - 1;
      break;
    }
    l = s[i + 1];
    int z;
    for (z = len - 1; z >= i + 1; z--) {
      if (s[z] == '0' || s[z] > '9' || s[z] < '0') continue;
      break;
    }
    string y = to_string(x);
    if (i + 2 <= z) {
      string k(s.begin() + i + 2, s.begin() + z + 1);
      ans = l + "." + k + "E" + "-" + y;
    } else {
      ans = l + "E" + "-" + y;
    }
  } else {
    int sum = 0, j;
    bool flag = false;
    for (j = i; j < len; j++) {
      if (s[j] == '.') break;
      if (flag) {
        r += s[j];
        sum++;
      } else {
        l += s[j];
        flag = true;
      }
    }
    string k;
    for (int z = j + 1; z < len; z++) {
      k += s[z];
    }
    if (sum) {
      string t = to_string(sum);
      ans = l + "." + r + k;
      int z;
      int len2 = ans.length();
      for (z = len2 - 1; z >= 0; z--) {
        if (ans[z] == '0' || ans[z] > '9' || ans[z] < '0') {
          continue;
        }
        break;
      }
      string ans2(ans.begin(), ans.begin() + z + 1);
      ans = ans2;
      ans += "E" + t;
    } else {
      ans = l + "." + r + k;
      int z;
      int len2 = ans.length();
      for (z = len2 - 1; z >= 0; z--) {
        if (ans[z] == '0' || ans[z] > '9' || ans[z] < '0') {
          continue;
        }
        break;
      }
      string ans2(ans.begin(), ans.begin() + z + 1);
      ans = ans2;
    }
  }
  cout << ans << endl;
}
int main() { solve(); }