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;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
string trim(string arr) {
  string ret = "";
  int n = arr.size();
  int flag = 0;
  for (int i = 0; i < n; i++) {
    if (flag == 0) {
      if (arr[i] != '0') {
        ret += arr[i];
        flag = 1;
      }
    } else
      ret += arr[i];
  }
  return ret;
}
string solve(string arr) {
  arr = trim(arr);
  string send = "";
  for (int i = arr.size() - 1; i >= 0; i--) send += arr[i];
  send = trim(send);
  string final = "";
  for (int i = send.size() - 1; i >= 0; i--) final += send[i];
  return final;
}
int main(void) {
  string arr;
  cin >> arr;
  int n = arr.size();
  int seta = 0;
  for (int i = 0; i < n; i++)
    if (arr[i] == '.') seta = 1;
  if (seta == 1)
    arr = solve(arr);
  else
    arr = trim(arr);
  int before = -1;
  n = arr.size();
  for (int i = 0; i < n; i++) {
    if (arr[i] == '.') before = i;
  }
  if (before == -1) {
    if (n == 0)
      printf("0\n");
    else {
      string test = "";
      for (int i = 0; i < n; i++) {
        test += arr[i];
        if (i == 0) test += '.';
      }
      test = solve(test);
      if (test.size() >= 1 && test[test.size() - 1] == '.') test.pop_back();
      cout << test;
      if (n > 1)
        printf("E%d\n", n - 1);
      else
        printf("\n");
    }
  } else if (before == n - 1) {
    if (n == 1)
      printf("0\n");
    else {
      string test = "";
      for (int i = 0; i < n - 1; i++) {
        test += arr[i];
        if (i == 0) test += '.';
      }
      test = solve(test);
      if (test.size() >= 1 && test[test.size() - 1] == '.') test.pop_back();
      cout << test;
      if (n > 2)
        printf("E%d\n", n - 2);
      else
        printf("\n");
    }
  } else if (before == 0) {
    if (n == 1)
      printf("0\n");
    else if (n == 2)
      printf("%cE-1\n", arr[1]);
    else {
      string test = "";
      int c = 1;
      for (int i = 1; i < n; i++) {
        if (arr[i] == '0')
          c++;
        else
          break;
      }
      for (int i = c; i < n; i++) {
        test += arr[i];
        if (i == c) test += '.';
      }
      test = solve(test);
      if (test.size() >= 1 && test[test.size() - 1] == '.') test.pop_back();
      cout << test;
      printf("E-%d\n", c);
    }
  } else {
    string test = "";
    test += arr[0];
    test += '.';
    for (int i = 1; i < n; i++) {
      if (arr[i] != '.') {
        test += arr[i];
      }
    }
    test = solve(test);
    if (test.size() >= 1 && test[test.size() - 1] == '.') test.pop_back();
    cout << test;
    if (before > 1)
      printf("E%d\n", before - 1);
    else
      printf("\n");
  }
  return (0);
}