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;
set<long long> se;
stack<int> stk;
map<int, int> mp;
map<int, int>::iterator it;
const int N = 2e5 + 20;
vector<int> v;
int main() {
  int x, y, z, n = 0, m = 0, u = 0, w = 0, fr = -1, ls = -1, po;
  char c1, c2;
  string s, a, b;
  bool f = 0, go = 0;
  cin >> s;
  if (s.find('.') == -1) s += '.';
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != '0' && f == 0 && go == 0 && s[i] != '.') {
      f = 1;
      fr = i;
    }
    if (s[i] != '0' && go == 1) ls = i;
    if (s[i] == '.') {
      po = i;
      go = 1;
    }
  }
  int sol = 0;
  if (fr == -1) {
    bool ok = 0;
    for (int i = po; i <= ls; i++) {
      if (s[i] == '.') continue;
      if (ok == 0) sol++;
      if (ok == 1) a += s[i];
      if (s[i] != '0' && ok == 0) {
        a += s[i];
        if (i != ls) a += '.';
        ok = 1;
      }
    }
    sol *= -1;
  } else {
    if (ls == -1) {
      n = -1;
      for (int i = fr; i <= po; i++) {
        if (s[i] != '0' && s[i] != '.') n = i;
      }
      if (n == -1) n = po;
      a += s[fr];
      if (n != fr) a += '.';
      sol = po - fr - 1;
      for (int i = fr + 1; i <= n; i++) {
        if (s[i] != '.') {
          a += s[i];
        }
      }
    } else {
      bool me = 0;
      a += s[fr];
      a += '.';
      for (int i = fr + 1; i <= ls; i++) {
        if (s[i] == '.') {
          me = 1;
          continue;
        }
        if (s[i] != '.') {
          a += s[i];
          if (po != fr + 1 && me == 0) sol++;
        }
      }
    }
  }
  cout << a;
  if (sol != 0)
    cout << "E" << sol << endl;
  else
    cout << endl;
  return 0;
}