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;
int find_coma(char* s) {
  for (int i = 0; s[i] != '\0'; ++i)
    if (s[i] == '.') return i;
  return -1;
}
int last_zeros(char* s, int last) {
  int res = 0;
  while (s[last - res - 1] == '0') res++;
  return res;
}
int leading_zeros(char* s) {
  int res = 0;
  while (s[res] == '0') res++;
  return res;
}
bool all_last_zeros(char* s, int pos) {
  while (s[pos] == '0') pos++;
  if (s[pos] == '\0') return true;
  if (s[pos] == '.') {
    pos++;
    while (s[pos] == '0') pos++;
    if (s[pos] == '\0') return true;
  }
  return false;
}
int main(int argc, const char* argv[]) {
  char* str;
  str = (char*)malloc(sizeof(char) * (1000009));
  scanf("%s", str);
  int len = strlen(str);
  bool neg = false;
  if (str[0] == '-') {
    neg = true;
    len--;
    str++;
  }
  int begin = leading_zeros(str);
  str += begin;
  len -= begin;
  if (len == 0) {
    printf("0\n");
    return 0;
  }
  int coma = find_coma(str);
  if (str[coma + 1] == '\0') {
    coma = -1;
    str[coma] = '\0';
    len--;
  }
  if (coma != -1) {
    len -= last_zeros(str, len);
    str[len] = '\0';
    int b = coma - 1;
    if (coma == 0) {
      int pos = 1;
      while (str[pos] == '0') pos++;
      if (str[pos] == '\0') {
        printf("0\n");
        return 0;
      }
      b = b + 1 - pos;
      str += pos;
      if (neg) putchar('-');
      putchar(str[0]);
      str++;
      if (!all_last_zeros(str, 0)) {
        putchar('.');
        printf("%s", str);
      }
    } else {
      if (neg) putchar('-');
      putchar(str[0]);
      if (coma == len - 1) {
        len -= 1;
        str[len] = '\0';
        len -= last_zeros(str, len);
        str[len] = '\0';
      }
      if (!all_last_zeros(str, 1)) putchar('.');
      str[coma] = '\0';
      str++;
      printf("%s", str);
      str += coma;
      printf("%s", str);
    }
    if (b != 0) {
      putchar('E');
      printf("%d", b);
    }
  } else {
    if (neg) putchar('-');
    putchar(str[0]);
    if (!all_last_zeros(str, 1)) putchar('.');
    int b = len - 1;
    for (int i = 1; str[i] != '\0'; ++i) {
      if (all_last_zeros(str, i))
        break;
      else
        putchar(str[i]);
    }
    if (b > 0) {
      putchar('E');
      printf("%d", b);
    }
  }
  putchar('\n');
  return 0;
}