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 main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, sum = 0, count = 0, m, flag = 0, che = 0;
  string x;
  cin >> x;
  vector<char> v;
  int k = 0;
  for (int i = 0; i < x.length(); i++) {
    if (x[i] != '0') {
      if (x[i] != '.') {
        che = 1;
        break;
      }
    }
  }
  if (che == 0) {
    cout << 0;
    return 0;
  }
  while (x[k] == '0') ++k;
  if (x[k] == '.') {
    count = 1;
    int i = k + 1;
    while (x[i] == '0') {
      ++i;
      count++;
    }
    for (int j = i; j < x.length(); j++) {
      v.push_back(x[j]);
    }
    for (int j = v.size() - 1; j >= 0; j--) {
      if (v[j] == '0') {
        v.erase(v.begin() + j);
      } else
        break;
    }
    if (v.size() != 1) {
      v.insert(v.begin() + 1, '.');
    }
    for (int i = 0; i < v.size(); i++) cout << v[i];
    cout << "E-";
    cout << count;
    return 0;
  }
  count = 0;
  for (int j = k; j < x.length(); j++) {
    v.push_back(x[j]);
    count++;
    if (x[j] == '.') flag = 1;
  }
  for (int j = v.size() - 1; j >= 0; j--) {
    if (v[j] == '0') {
      v.erase(v.begin() + j);
      if (flag == 1) count--;
    } else
      break;
  }
  if (v.size() != 1 && flag == 0) {
    v.insert(v.begin() + 1, '.');
  }
  if (flag == 1 && v.size() > 1) {
    v.insert(v.begin() + 1, '.');
    for (int i = 2; i < v.size(); i++) {
      if (v[i] == '.') {
        sum = i;
        v.erase(v.begin() + i);
        flag = 1;
        break;
      }
    }
  }
  if (flag == 1) {
    count = 0;
    for (int i = k; i < x.length(); i++, count++)
      if (x[i] == '.') break;
  }
  if (flag == 1) {
    for (int i = v.size(); i >= 0; i--) {
      if (v[i] != '0') {
        if (v[i] != '.') {
          che = 1;
          break;
        }
      }
      if (v[i] == '0') v.erase(v.begin() + i);
    }
  }
  if (v[v.size() - 1] == '.') {
    v.erase(v.end() - 1);
  }
  for (int i = 0; i < v.size(); i++) cout << v[i];
  if (count > 1) {
    cout << "E";
    cout << count - 1;
  }
  return 0;
}