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 JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author KoT
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        String trimLeft(String s) {
            int index = 0;
            while (index < s.length() && s.charAt(index) == '0') ++index;
            if (index == s.length()) {
                return "";
            }
            return s.substring(index);
        }

        String trimRight(String s) {
            int index = s.length() - 1;
            while (index < s.length() && s.charAt(index) == '0') --index;
            if (index < 0) {
                return "";
            }
            return s.substring(0, index + 1);
        }

        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String s = in.next();
            int index = 0;

            index = s.indexOf('.');
            if (index == -1) {
                s = s + ".";
            }
            s = trimRight(trimLeft(s));
            index = s.indexOf('.');
            if (index == s.length() - 1) {//1233400.00
                s = s.substring(0, index);
                String updated = trimRight(s);
                int b = s.length() - updated.length();
                s = updated;
                if (s.length() == 1) { //100
                    out.print(s);
                    if (b > 0)
                        out.print("E" + b);
                } else {
                    out.print(s.charAt(0) + ".");
                    out.print(s.substring(1));
                    int count = s.length() - 1 + b;
                    out.print("E" + count);
                }
            } else {
                if (s.charAt(0) == '.') { //.0123
                    s = s.substring(1);
                    String temp = trimLeft(s);
                    int b = (s.length() - temp.length()) * -1;
                    --b;
                    s = temp;
                    out.print(s.charAt(0));
                    if (s.length() > 1)
                        out.print("." + s.substring(1));
                    out.print("E" + b);
                } else {
                    String q = s.substring(0, index);
                    String p = s.substring(index + 1);
                    if (q.length() == 1) {
                        out.print(s);
                        return;
                    }
                    out.print(q.charAt(0) + "." + q.substring(1) + p + "E" + (q.length() - 1));
                }
            }
        }

    }
}