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;
char str[1000005];
char integer[1000005];
char decimal[1000005];
int main() {
  scanf("%s", str);
  int len = strlen(str);
  bool havepoint = false;
  int pointpos = len;
  for (int i = 0; i < len; ++i) {
    if (str[i] == '.') {
      havepoint = true;
      pointpos = i;
      break;
    }
  }
  int ipos = 0, dpos = 0;
  bool integerzero = true;
  for (int i = 0; i < pointpos; ++i) {
    if (str[i] == '0') {
      if (integerzero == false) integer[ipos++] = str[i];
    } else {
      integer[ipos++] = str[i];
      integerzero = false;
    }
  }
  int lastnonzero = len - 1;
  bool decimalzero = true;
  if (havepoint) {
    for (int i = len - 1; i > pointpos; --i) {
      if (str[i] != '0') {
        decimalzero = false;
        lastnonzero = i;
        break;
      }
    }
    if (decimalzero == false) {
      for (int i = pointpos + 1; i <= lastnonzero; ++i)
        decimal[dpos++] = str[i];
    }
  }
  if (havepoint) {
    if (integerzero && decimalzero) {
      printf("0\n");
    } else if (integerzero) {
      if (dpos == 1) {
        printf("%cE-1\n", decimal[0]);
      } else {
        int nonzeropos = 0;
        for (int i = 0; i < dpos; ++i) {
          if (decimal[i] != '0') {
            nonzeropos = i;
            break;
          }
        }
        printf("%c", decimal[nonzeropos]);
        if (nonzeropos + 1 < dpos) printf(".");
        for (int i = nonzeropos + 1; i < dpos; ++i) printf("%c", decimal[i]);
        printf("E-%d\n", nonzeropos + 1);
      }
    } else if (decimalzero) {
      if (ipos == 1) {
        printf("%c\n", integer[0]);
      } else {
        printf("%c", integer[0]);
        int nonzeropos = 0;
        for (int i = ipos - 1; i >= 0; --i) {
          if (integer[i] != '0') {
            nonzeropos = i;
            break;
          }
        }
        if (nonzeropos > 0) printf(".");
        for (int i = 1; i <= nonzeropos; ++i) printf("%c", integer[i]);
        printf("E%d\n", ipos - 1);
      }
    } else {
      if (ipos == 1) {
        printf("%c.", integer[0]);
        for (int i = 0; i < dpos; ++i) printf("%c", decimal[i]);
        printf("\n");
      } else {
        printf("%c.", integer[0]);
        for (int i = 1; i < ipos; ++i) printf("%c", integer[i]);
        for (int i = 0; i < dpos; ++i) printf("%c", decimal[i]);
        printf("E%d\n", ipos - 1);
      }
    }
  } else {
    if (integerzero) {
      printf("0\n");
    } else {
      if (ipos == 1) {
        printf("%c\n", integer[0]);
      } else {
        printf("%c", integer[0]);
        int nonzeropos = 0;
        for (int i = ipos - 1; i >= 0; --i) {
          if (integer[i] != '0') {
            nonzeropos = i;
            break;
          }
        }
        if (nonzeropos > 0) printf(".");
        for (int i = 1; i <= nonzeropos; ++i) printf("%c", integer[i]);
        printf("E%d\n", ipos - 1);
      }
    }
  }
  return 0;
}