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;
long long int power(long long int x, long long int y, long long int p) {
  long long int res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
long long int modInverse(long long int n, long long int p) {
  return power(n, p - 2, p);
}
struct point {
  long long int x, y;
};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long int n = s.length();
  long long int ind = n - 1;
  for (long long int i = 0; i < n; i++) {
    if (s[i] == '.') {
      ind = i;
      s.erase(ind, 1);
      break;
    }
  }
  int mult = -(n - 1 - ind);
  string s1 = "";
  bool flag = true;
  long long int pos = 0;
  n = s.length();
  for (long long int i = 0; i < n; i++) {
    if (s[i] != '0' && flag) {
      s1.push_back(s[i]);
      s1.push_back('.');
      flag = false;
      continue;
    }
    if (!flag) {
      s1.push_back(s[i]);
    }
  }
  if (s1 == "") {
    cout << "0\n";
    return 0;
  }
  mult += (long long int)s1.length() - 2;
  long long int n1 = s1.length();
  long long int end = n1 - 1;
  for (long long int i = n1 - 1; i >= 0; i--) {
    if (s1[i] == '0') {
      end = i - 1;
    } else {
      break;
    }
  }
  if (s1[end] == '.') {
    end--;
  }
  if (mult == 0) {
    cout << s1.substr(0, end + 1);
  } else {
    cout << s1.substr(0, end + 1);
    cout << "E" << mult << "\n";
  }
}