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 double PI = acos(-1.0);
const long long LINF = (long long)1e18 + 5;
const int INF = (int)1e9 + 5;
template <class T>
T sqr(T x) {
  return x * x;
}
template <class T>
T abs(T x) {
  return x < 0 ? -x : x;
}
template <class T>
long long round(T x) {
  return x < 0 ? x - 0.5 : x + 0.5;
}
template <class T>
bool chmin(T& x, const T& y) {
  if (y < x) {
    x = y;
    return true;
  }
  return false;
}
template <class T>
bool chmax(T& x, const T& y) {
  if (x < y) {
    x = y;
    return true;
  }
  return false;
}
string norm(string s) {
  reverse((s).begin(), (s).end());
  while (s.size() > 0 && s[(int)s.size() - 1] == '0') s.erase(s.end() - 1);
  reverse((s).begin(), (s).end());
  return s;
}
string normEnd(string s) {
  assert(s.find('.') != string::npos);
  while (s.size() > 0 && (s[(int)s.size() - 1] == '0')) s.erase(s.end() - 1);
  if (s.size() > 0 && s[(int)s.size() - 1] == '.') s.erase(s.end() - 1);
  return s;
}
void answer(string s) {
  cout << s << endl;
  exit(0);
}
int main() {
  string s;
  cin >> s;
  s = norm(s);
  size_t pos = s.find('.');
  if (pos != string::npos) s = normEnd(s);
  pos = s.find('.');
  if (pos == string::npos) {
    if (s.size() == 1) answer(s);
    int ee = (int)s.size() - 1;
    s.insert(s.begin() + 1, '.');
    s = normEnd(s);
    s = s + 'E' + to_string(ee);
    answer(s);
  }
  if (pos == 1) {
    s = normEnd(s);
    answer(s);
  }
  if (pos == 0) {
    s = normEnd(s);
    s.erase(s.begin());
    for (int i = 0; i < (int)s.size(); i++) {
      if (s[i] != '0') {
        s.insert(s.begin() + i + 1, '.');
        int ee = i + 1;
        s = norm(s);
        s = normEnd(s);
        s = s + "E" + to_string(-ee);
        answer(s);
      }
    }
    assert(false);
  }
  int ee = pos - 1;
  s.erase(s.begin() + pos);
  s.insert(s.begin() + 1, '.');
  s = normEnd(s);
  s = s + "E" + to_string(ee);
  answer(s);
}