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
import java.io.*;
import java.util.InputMismatchException;

public class Codeforces {
    private static InputReader ir = new InputReader(System.in);
    private static OutputWriter ow = new OutputWriter(System.out);

    public static void main(String[] args) throws Exception {
        taskA();
        exit();
    }

    public static void taskA() throws Exception {
        String source = ir.nextLine();
        int pi = -1;
        for (int i = 0; i < source.length(); ++i) {
            if (source.charAt(i) != '0' && source.charAt(i) != '.') {
                pi = i;
                break;
            }
        }
        int pd = source.indexOf('.');
        if (pd == -1) pd = source.length();
        if (pi == -1) {
            ow.print(0);
            return;
        }
        int b = pd - pi;
        if (b > 0) --b;
        int exit = source.length() - 1;
        for (int i = source.length() - 1; i >= pd - b - 1; --i) {
            //System.out.println("<< " + i);
            if (source.charAt(i) != '0' && source.charAt(i) != '.') {
                //System.out.println(">> " + i);
                exit = i;
                break;
            }
        }
        //System.out.println(exit);
        String a = String.valueOf(source.charAt(pi));
        //String c = "";
//        for (int i = pi + 1; i <= exit; ++i) {
//            //ow.print(source.charAt(i));
//            if (source.charAt(i) != '.') {
//                //c += source.charAt(i);
//
//            }
//        }
//        for (int i = c.length() - 1; i >= 0; --i) {
//            if (c.charAt(i) != '0') {
//                c = c.substring(0, i + 1);
//                break;
//            }
//        }
//        boolean isNull = true;
//        for (int i = 0; i < c.length(); ++i) {
//            //System.out.println(c.charAt(i));
//            if (c.charAt(i) != '0') {
//                isNull = false;
//                break;
//            }
//        }
//        if (isNull) c = "";
        //ow.print(String.valueOf(isNull));
        ow.print(a);
        boolean p = false;
        for (int i = pi + 1; i <= exit; ++i) {
            if (!p) {
                ow.print(".");
                p = true;
            }
            if (source.charAt(i) != '.') {
                ow.print("" + source.charAt(i));
            }
        }
        if (b != 0) ow.print("E" + b);
    }

    public static void exit() throws Exception {
        ir.close();
        ow.close();
    }
}

class InputReader implements AutoCloseable {
    private final InputStream in;
    private int capacity;
    private byte[] buffer;
    private int len = 0;
    private int cur = 0;

    public InputReader(InputStream stream) {
        this(stream, 100_000);
    }

    public InputReader(InputStream stream, int capacity) {
        this.in = stream;
        this.capacity = capacity;
        buffer = new byte[capacity];
    }

    private int read() {
        if (cur >= len) {
            try {
                cur = 0;
                len = in.read(buffer, 0, capacity);
                if (len <= 0)
                    return -1;
            } catch (IOException e) {
                throw new InputMismatchException();
            }
        }
        return buffer[cur++];
    }

    private boolean isSpace(int c) {
        return c == ' ' || isEscape(c);
    }

    private boolean isEscape(int c) {
        return c == '\n' || c == '\t' || c == '\r' || c == -1;
    }

    private int readSkipSpace() {
        int c;
        do {
            c = read();
        } while (isSpace(c));
        return c;
    }

    int nextInt() {
        int c = readSkipSpace();
        int sgn = 1;
        if (c == '-') {
            sgn = -1;
            c = read();
        }
        int res = 0;
        do {
            if (c < '0' || c > '9')
                throw new InputMismatchException();
            res = res * 10 + c - '0';
            c = read();
        } while (!isSpace(c));
        res *= sgn;
        return res;
    }

    String nextLine() {
        StringBuilder res = new StringBuilder();
        int c = readSkipSpace();
        do {
            res.append((char) (c));
            c = read();
        } while (!isEscape(c));
        return res.toString();
    }

    @Override
    public void close() throws Exception {
        in.close();
    }
}


class OutputWriter implements Flushable, AutoCloseable {
    private byte[] buf;
    private int capacity;
    private int count;
    private OutputStream out;

    public OutputWriter(OutputStream stream) {
        out = stream;
        capacity = 10_000;
        buf = new byte[capacity];
    }

    public OutputWriter(OutputStream stream, int capacity) {
        if (capacity <= 0)
            throw new IllegalArgumentException("capacity <= 0");
        out = stream;
        this.capacity = capacity;
        buf = new byte[capacity];
    }

    public void write(int b) throws IOException {
        if (count >= buf.length)
            flushBuffer();
        buf[count++] = (byte)b;
    }

    public void write(byte[] bytes, int off, int len) throws IOException {
        if (len >= buf.length) {
            flushBuffer();
            out.write(bytes, off, len);
            return;
        }
        if (len > buf.length - count)
            flushBuffer();
        System.arraycopy(bytes, off, buf, count, len);
        count += len;
    }

    public void write(byte[] bytes) throws IOException {
        write(bytes, 0, bytes.length);
    }

    public void print(int i) throws IOException {
        print(String.valueOf(i));
    }

    public void print(String str) throws IOException {
        write(str.getBytes());
    }

    public void println() throws IOException {
        print("\n");
    }

    public void println(String str) throws IOException {
        print(str);
        print("\n");
    }

    public void println(int i) throws IOException {
        print(i);
        println();
    }

    public void print(String separator, Object... objects) throws IOException {
        if (objects == null) return;
        for (int i = 0; i < objects.length; ++i) {
            if (i != 0 && separator != null) print(separator);
            print(objects[i].toString());
        }
    }

    private void flushBuffer() throws IOException {
        if (count > 0) {
            out.write(buf, 0, count);
            count = 0;
        }
    }

    @Override
    public void flush() throws IOException {
        flushBuffer();
        out.flush();
    }

    @Override
    public void close() throws Exception {
        flush();
        out.close();
    }
}




