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;
vector<int> fillvec(int size) {
  vector<int> ans;
  for (int i = 0; i < size; i++) {
    int temp;
    cin >> temp;
    ans.push_back(temp);
  }
  return ans;
}
long long gcd(long long a, long long b) { return !a ? b : gcd(b % a, a); }
long long lcm(long long a, long long b) { return (a / gcd(a, b)) * b; }
vector<long long> getdivisors(long long n) {
  vector<long long> ans;
  for (long long i = 1; i <= sqrt(n); i++) {
    if (n % i == 0) {
      if (n / i == i) {
        ans.push_back(i);
      } else {
        ans.push_back(i);
        ans.push_back(n / i);
      }
    }
  }
  sort(ans.begin(), ans.end());
  return ans;
}
string DecToBin(int number) {
  if (number == 0) return "0";
  if (number == 1) return "1";
  if (number % 2 == 0)
    return DecToBin(number / 2) + "0";
  else
    return DecToBin(number / 2) + "1";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string n;
  cin >> n;
  long long b = 0, pp = 0, fp = 0;
  n = n.substr(n.find_first_not_of('0'));
  for (int i = 0; i < n.size(); i++) {
    if (n[i] == '.') {
      break;
    } else if (i == n.size() - 1) {
      b += n.size() - 1;
      n.insert(n.begin() + 1, '.');
      break;
    }
  }
  for (int i = 0; i < n.size(); i++) {
    if (n[i] == '.') {
      pp = i;
      break;
    }
  }
  for (int i = 0; i < n.size(); i++) {
    if (n[i] != '0' && n[i] != '.') {
      fp = i;
      break;
    }
  }
  b += pp - fp;
  if (b >= 0) b--;
  n.erase(n.begin() + pp);
  for (int i = 0; i < n.size(); i++) {
    if (n[i] != '0' && n[i] != '.') {
      fp = i;
      break;
    }
  }
  n.insert(n.begin() + fp + 1, '.');
  n = n.substr(n.find_first_not_of('0'));
  reverse(n.begin(), n.end());
  n = n.substr(n.find_first_not_of('0'));
  reverse(n.begin(), n.end());
  if (n.back() == '.') n.pop_back();
  if (n.front() == '.') {
    reverse(n.begin(), n.end());
    n.pop_back();
    reverse(n.begin(), n.end());
  }
  if (b == 0)
    cout << n << endl;
  else
    cout << n << "E" << b;
}