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 long long Mod = 1e9 + 7;
bool vis[100020];
string task(string g) {
  string w = "";
  bool f = 0;
  for (int i = 0; i < g.size(); i++) {
    if (g[i] != '0') f = 1;
    if (!f && g[i] == '0') continue;
    w += g[i];
  }
  return w;
}
int main() {
  ios::sync_with_stdio(0);
  string g;
  cin >> g;
  g = task(g);
  int p = g.find('.');
  if (p == -1) {
    string w = g.substr(1, g.size()), w1 = "";
    bool f = 0;
    for (int i = g.size() - 1; i > 0; i--) {
      if (g[i] != '0') f = 1;
      if (!f && g[i] == '0') continue;
      w1 += g[i];
    }
    if (g.size() == 1) {
      cout << g << endl;
      return 0;
    }
    cout << g[0];
    reverse(w1.begin(), w1.end());
    if (w1.size() > 0) cout << ".";
    cout << w1 << "E" << w.size() << endl;
  } else {
    string w = "";
    bool f = 0;
    for (int i = 0; i < p; i++) {
      if (g[i] != '0') f = 1;
      if (!f && g[i] == '0') continue;
      w += g[i];
    }
    string s = "";
    f = 0;
    for (int i = g.size() - 1; i > p; i--) {
      if (g[i] != '0') f = 1;
      if (!f && g[i] == '0') continue;
      s += g[i];
    }
    reverse(s.begin(), s.end());
    if (!w.empty()) {
      if (w.size() == 1) {
        cout << w;
        if (!s.empty()) cout << ".";
        cout << s << endl;
      } else {
        string q = "", q1 = w.substr(1, w.size());
        f = 0;
        if (!s.empty()) f = 1;
        for (int i = w.size() - 1; i > 0; i--) {
          if (w[i] != '0') f = 1;
          if (!f && w[i] == '0') continue;
          q += w[i];
        }
        cout << w[0];
        reverse(q.begin(), q.end());
        if (q.size() > 0) cout << '.';
        cout << q + s << "E" << q1.size() << endl;
      }
    } else if (w.empty()) {
      string x = "";
      f = 0;
      for (int i = 0; i < s.size(); i++) {
        if (s[i] != '0') f = 1;
        if (!f && s[i] == '0') continue;
        x += s[i];
      }
      int r = g.find(x[0]);
      string d = x.substr(1, x.size());
      cout << x[0];
      if (x.size() > 1) cout << '.';
      cout << d << "E" << p - r << endl;
    }
  }
}