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 q[1000010];
int main() {
  int sum, q1, q2, flag, w9, dian, q3, q4;
  scanf("%s", q);
  int s = strlen(q);
  q3 = s - 1;
  q2 = s - 1;
  dian = 0;
  for (int i = 0; i < s; i++)
    if (q[i] == '.') {
      q2 = i;
      dian = 1;
      break;
    }
  for (int i = 0;; i++)
    if (q[i] != '0') {
      q1 = i;
      break;
    }
  q3 = q3 - q1;
  for (int i = s - 1;; i--)
    if (q[i] != '0') {
      s = i;
      break;
    }
  if (dian == 1) {
    for (int i = q2 + 1;; i++)
      if (q[i] != '0') {
        q4 = i;
        break;
      }
  }
  if ((s == 0 && q[0] == '0') || (s == 1 && q[0] == '0' && q[1] == '.'))
    printf("0\n");
  else if ((q2 - q1 == 1 && dian == 1) || (q2 == q1 && dian == 0)) {
    if (q[s] == '.') s -= 1;
    for (int i = q1; i <= s; i++) printf("%c", q[i]);
  } else if ((q2 - q1 >= 2 && dian == 1) || (q2 - q1 >= 1 && dian == 0)) {
    if (dian == 0)
      sum = q3;
    else
      sum = q2 - q1 - 1;
    printf("%c", q[q1]);
    w9 = s;
    if (q[s] == '.') {
      s -= 1;
      for (int i = s;; i--)
        if (q[i] != '0') {
          w9 = i;
          break;
        }
    }
    if (w9 != q1) {
      printf(".");
      for (int i = q1 + 1; i <= w9; i++)
        if (q[i] == '.')
          continue;
        else
          printf("%c", q[i]);
    }
    printf("E%d", sum);
  } else if (q1 == q2 && s != q2) {
    sum = q4 - q2;
    for (int i = q2 + 1; i <= s; i++)
      if (q[i] != '0') {
        flag = i;
        break;
      }
    printf("%c", q[flag]);
    if (flag != s) {
      printf(".");
      for (int i = flag + 1; i <= s; i++) printf("%c", q[i]);
    }
    printf("E-%d", sum);
  }
  return 0;
}