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;
string s;
void input();
bool CheckDot() {
  for (int i = 0; i < s.size(); i++)
    if (s[i] == '.') return true;
  return false;
}
string CutUpLaggingZero(string p) {
  int i = p.size() - 1;
  while (p[i] == '0') {
    i--;
  }
  string ret = "";
  for (int j = 0; j <= i; j++) ret += p[j];
  return ret;
}
void LeadingDot(int i) {
  int leading_zero = 0;
  for (int k = i + 1; k <= s.size(); k++) {
    if (s[k] == '0')
      leading_zero++;
    else
      break;
  }
  int inv = leading_zero + 1;
  int j = s.size() - 1;
  while (s[j] == '0') j--;
  if (i == j) {
    cout << 0 << "\n";
    return;
  }
  string ans = "";
  ans += s[i + leading_zero + 1];
  ans += '.';
  for (int k = i + leading_zero + 2; k <= j; k++) {
    ans += s[k];
  }
  ans = CutUpLaggingZero(ans);
  if (ans.size() == 2)
    cout << ans[0];
  else
    cout << ans;
  cout << "E-" << inv;
}
void NoDot() {
  string ans = "";
  int i = 0;
  while (s[i] == '0' and i < s.size()) {
    i++;
    continue;
  }
  if (i == s.size()) {
    cout << 0 << "\n";
    return;
  }
  ans += s[i];
  ans += '.';
  for (int k = i + 1; k < s.size(); k++) {
    ans += s[k];
  }
  int ex = (s.size() - (i + 1));
  ans = CutUpLaggingZero(ans);
  if (ans.size() == 2)
    cout << ans[0];
  else
    cout << ans;
  if (ex != 0) cout << "E" << ex;
  cout << "\n";
}
void NotLeadingDot(int i) {
  int before_dot = 0;
  string ex = "";
  int k = i;
  while (++k < s.size()) {
    if (s[k] != '.')
      before_dot++;
    else
      break;
    ex += s[k];
  }
  int pw = ex.size();
  k++;
  int j = s.size() - 1;
  while (s[j] == '0') j--;
  while (k <= j) {
    ex += s[k++];
  }
  cout << s[i];
  ex = CutUpLaggingZero(ex);
  if (ex.size() > 0) cout << "." << ex;
  if (pw != 0) cout << "E" << pw;
  cout << "\n";
}
void solve() {
  if (CheckDot()) {
    int i = 0;
    while (s[i] == '0') i++;
    if (s[i] == '.') {
      LeadingDot(i);
    } else {
      NotLeadingDot(i);
    }
  } else {
    NoDot();
  }
}
void Clear() {}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  input();
  solve();
  Clear();
}
void input() { cin >> s; }