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;
long long t = 1;
void solve() {
  string s;
  getline(cin, s);
  string dot = ".";
  if (s.find(dot) == string::npos) {
    int start = 0;
    int end = s.length() - 1;
    int b = 0;
    while (s[start] == '0' && start < end) start++;
    while (s[end] == '0' && end > start) end--, b++;
    cout << s[start];
    if (end - start + b > 0) {
      if (end > start) cout << "." << s.substr(start + 1, end - start);
      cout << "E" << end - start + b;
    }
    return;
  } else {
    int dt = -1;
    for (long long i = 0; i < s.length(); i += 1)
      if (s[i] == '.') dt = i;
    int start = 0, end = s.length() - 1;
    int f1 = 0, f2 = 0;
    for (long long i = 0; i < dt; i += 1)
      if (s[i] != '0') f1 = 1;
    for (long long i = dt + 1; i < end + 1; i += 1)
      if (s[i] != '0') f2 = 1;
    if (f1 == 1 && f2 == 1) {
      while (s[start] == '0' && start < dt) start++;
      while (s[end] == '0' && end > dt) end--;
      cout << s[start] << '.';
      int b = 0;
      b = dt - start;
      if (b > 1) cout << s.substr(start + 1, b - 1);
      for (long long i = dt + 1; i < end + 1; i += 1) cout << s[i];
      if (b > 1) cout << "E" << b - 1;
      return;
    } else if (f1 == 0) {
      int ff1 = dt + 1, b = 0;
      while (s[ff1] == '0') b--, ff1++;
      b--;
      while (s[end] == '0' && end > dt) end--;
      if (end == ff1) {
        cout << s[end] << "E" << b;
        return;
      } else {
        cout << s[ff1] << ".";
        for (long long i = ff1 + 1; i < end + 1; i += 1) cout << s[i];
        cout << "E";
        cout << b;
        return;
      }
    } else if (f2 == 0) {
      start = 0, end = dt - 1;
      int b = 0;
      while (s[start] == '0') start++;
      while (s[end] == '0') end--, b++;
      cout << s[start];
      if (end - start > 0) cout << ".";
      for (long long i = start + 1; i < end + 1; i += 1)
        if (dt - start > 1) cout << s[i], b++;
      if (b > 0) cout << "E" << b;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  while (t--) solve();
  return 0;
}