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 a[1001];
int n;
char ch[1000001];
bool check(int i) {
  if (ch[i] == 'A' && ch[n - i - 1] == 'A') return true;
  if (ch[i] == 'H' && ch[n - i - 1] == 'H') return true;
  if (ch[i] == 'I' && ch[n - i - 1] == 'I') return true;
  if (ch[i] == 'M' && ch[n - i - 1] == 'M') return true;
  if (ch[i] == 'O' && ch[n - i - 1] == 'O') return true;
  if (ch[i] == 'T' && ch[n - i - 1] == 'T') return true;
  if (ch[i] == 'U' && ch[n - i - 1] == 'U') return true;
  if (ch[i] == 'V' && ch[n - i - 1] == 'V') return true;
  if (ch[i] == 'W' && ch[n - i - 1] == 'W') return true;
  if (ch[i] == 'X' && ch[n - i - 1] == 'X') return true;
  if (ch[i] == 'Y' && ch[n - i - 1] == 'Y') return true;
  if (ch[i] == 'o' && ch[n - i - 1] == 'o') return true;
  if (ch[i] == 'v' && ch[n - i - 1] == 'v') return true;
  if (ch[i] == 'w' && ch[n - i - 1] == 'w') return true;
  if (ch[i] == 'x' && ch[n - i - 1] == 'x') return true;
  if (ch[i] == 'b' && ch[n - 1 - i] == 'd') return true;
  if (ch[i] == 'd' && ch[n - 1 - i] == 'b') return true;
  if (ch[i] == 'p' && ch[n - 1 - i] == 'q') return true;
  if (ch[i] == 'q' && ch[n - 1 - i] == 'p') return true;
  return false;
}
int main() {
  cin >> ch;
  n = strlen(ch);
  int x, k1;
  int i = 0, j = n - 1;
  while (ch[i] < '1' || ch[i] > '9') i++;
  if (i >= n)
    cout << 0 << endl;
  else {
    int b = 0;
    bool flag = true;
    for (int k = 0; k <= n - 1; k++)
      if (ch[k] == '.') {
        if (k > i)
          b = k - i - 1;
        else
          b = k - i;
        k1 = k;
        flag = false;
      }
    while ((ch[j] < '1' || ch[j] > '9')) j--;
    if (k1 < i) x = k1 - 1;
    if (flag) {
      cout << ch[i];
      if (i != j) cout << ".";
      for (int k = i + 1; k <= j; k++) cout << ch[k];
      if (n - i != 1) cout << "E" << n - i - 1;
    } else if (b == 0) {
      for (int k = i; k <= j; k++) cout << ch[k];
    } else {
      cout << ch[i];
      if (i != j) cout << ".";
      for (int k = i + 1; k <= j; k++)
        if (ch[k] != '.') cout << ch[k];
      cout << "E" << b;
    }
  }
}