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.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

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

    static class TaskC {
        private String stripZeros(String s) {
            int i = 0;
            while (i < s.length() && s.charAt(i) == '0') ++i;
            s = s.substring(i);
            i = s.length() - 1;
            while (i >= 0 && s.charAt(i) == '0') --i;
            s = s.substring(0, i + 1);
            return s;
        }

        public void solve(int testNumber, InputReader in, PrintWriter out) {
            String s = in.next();
            if (!s.contains(".")) s += ".";
            s = stripZeros(s);
            int pt = s.indexOf('.');
            String L = s.substring(0, pt);
            String R = s.substring(pt + 1);
            if (L.length() == 0 && R.length() == 0) {
                out.println(0);
                return;
            }
            int pow = 0;
            if (L.length() > 0) pow = L.length() - 1;
            else {
                int j = 0;
                while (j < R.length() && R.charAt(j) == '0') ++j;
                pow = -j - 1;
            }
            String full = stripZeros(L + R);
            if (full.length() > 1) {
                full = full.charAt(0) + "." + full.substring(1);
            }
            out.print(full);
            if (pow != 0) out.println("E" + pow);

        }

    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

    }
}