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 int max_ = 1000005;
char s[max_];
char result[max_];
int start = 0;
int aashari = -1;
bool mishe = true;
bool asliHa = true;
int aasli = 0;
int main() {
  cin >> s;
  int cc = 0;
  int lengh = strlen(s);
  if ((s[0] == '0' && lengh == 1) ||
      (s[0] == '0' && lengh == 2 && s[1] == '.') ||
      (s[0] == '.' && lengh == 2 && s[1] == '0')) {
    cout << 0;
  } else {
    int sum = 0;
    for (int i = 0; i < lengh; i++) {
      if (s[i] == '.') {
        if (i != lengh - 1) {
          aashari = i;
        }
        asliHa = false;
      }
      if (s[i] > '0' && s[i] <= '9' && mishe) {
        result[0] = s[i];
        if (lengh == 2 && s[1] != '.' && s[0] != '.') {
          result[1] = '.';
        }
        if (lengh != 2 && s[1] != '.' && s[0] != '.') {
          result[1] = '.';
        }
        if (lengh != 2 && s[1] == '.' && s[0] != '.') {
          result[1] = '.';
        }
        if (lengh != 2 && s[0] == '.') {
          result[1] = '.';
        }
        start = i;
        mishe = false;
        sum += (s[i] - 48);
      }
      if (mishe) {
        cc++;
      }
      if (asliHa) {
        aasli++;
      }
    }
    if (sum <= 0) {
      cout << '0';
      return 0;
    }
    lengh++;
    int kojas = 1;
    if (aashari == -1) {
      aashari = aasli;
      kojas = 1;
    }
    if (s[0] == '0' && s[1] > '0' && s[1] <= '9' && aashari == aasli) {
      for (int i = 1; i < lengh; i++) {
      }
    }
    int sefr = 0;
    for (int i = start + 1; i < lengh; i++) {
      if (s[i] != '.' && s[i] >= '0' && s[i] <= '9') {
        sefr++;
        kojas++;
        result[kojas] = s[i];
      }
    }
    if (sefr == lengh - 2 && s[0] == '0' && aashari != aasli) {
      cout << 0;
      return 0;
    }
    int kam = 0;
    bool kkam = false;
    for (int i = 1; i < lengh; i++) {
      if (result[i] == '0') {
        kam++;
        kkam = true;
      } else if (result[i] == '.') {
      } else {
        if (result[i] >= '1' && result[i] <= '9') {
          kkam = false;
          kam = 0;
        } else {
        }
      }
    }
    if (kkam) {
      lengh -= kam;
    }
    if (((start - aashari) * -1) - 1 > 0) {
    } else if (((start - aashari) * -1) < 0) {
    } else {
      if (cc > 0 && kam <= 2) {
        lengh--;
      }
    }
    int yyy = -1;
    int o = 0;
    for (int i = 0; i < lengh - cc; i++) {
      if (result[i] == '.' && i == lengh - cc - 1) {
      } else if (result[i] == '0' || result[i] == '.' || result[i] == '1' ||
                 result[i] == '2' || result[i] == '3' || result[i] == '4' ||
                 result[i] == '5' || result[i] == '6' || result[i] == '7' ||
                 result[i] == '8' || result[i] == '9') {
        if (result[i] == '.') {
          yyy = 0;
        } else if (result[i] == '0' && yyy >= 0) {
          yyy++;
          o++;
        } else if (result[i] != '0' && yyy >= 0) {
          yyy = 0;
          o = 0;
        } else if (i == lengh - cc - 1 && yyy == 1) {
          yyy++;
        } else if (i == lengh - cc - 1 && result[i] == '.') {
          yyy++;
          cout << "-";
        } else if (i == lengh - cc - 1 && result[i] == '0') {
          yyy++;
        }
        if (yyy == 1 && i == lengh - cc - 1 && lengh - cc - 1 == 2) {
          yyy++;
        }
      }
    }
    if (yyy == o && yyy > 1) {
      yyy++;
    }
    for (int i = 0; i < lengh - cc; i++) {
      if (result[i] == '.' && i == lengh - cc - 1) {
      } else if (result[i] == '0' || result[i] == '.' || result[i] == '1' ||
                 result[i] == '2' || result[i] == '3' || result[i] == '4' ||
                 result[i] == '5' || result[i] == '6' || result[i] == '7' ||
                 result[i] == '8' || result[i] == '9') {
        if (i < (lengh - cc) - yyy) {
          cout << result[i];
        }
      }
    }
    if (cc == lengh) {
      return 0;
    }
    if (((start - aashari) * -1) - 1 > 0) {
      cout << "E" << ((start - aashari) * -1) - 1;
    } else if (((start - aashari) * -1) < 0) {
      cout << "E" << (start - aashari) * -1;
    } else {
    }
  }
  return 0;
}