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.math.BigInteger;
import java.util.*;

public class C implements Runnable {

    private static final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;

    private BufferedReader in;
    private PrintWriter out;
    private StringTokenizer tok = new StringTokenizer("");

    private void init() throws FileNotFoundException {
        Locale.setDefault(Locale.US);
        String fileName = "";
        if (ONLINE_JUDGE && fileName.isEmpty()) {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
        } else {
            try {
                if (fileName.isEmpty()) {
                    in = new BufferedReader(new FileReader("input.txt"));
                    out = new PrintWriter("output.txt");
                } else {
                    in = new BufferedReader(new FileReader(fileName + ".in"));
                    out = new PrintWriter(fileName + ".out");
                }
            } catch (Throwable t) {
                in = new BufferedReader(new InputStreamReader(System.in));
                out = new PrintWriter(System.out);
            }
        }
    }

    String readString() {
        while (!tok.hasMoreTokens()) {
            try {
                tok = new StringTokenizer(in.readLine());
            } catch (Exception e) {
                return null;
            }
        }
        return tok.nextToken();
    }

    int readInt() {
        return Integer.parseInt(readString());
    }

    long readLong() {
        return Long.parseLong(readString());
    }

    double readDouble() {
        return Double.parseDouble(readString());
    }

    int[] readIntArray(int size) {
        int[] a = new int[size];
        for (int i = 0; i < size; i++) {
            a[i] = readInt();
        }
        return a;
    }

    public static void main(String[] args) {
        //new Thread(null, new _Solution(), "", 128 * (1L << 20)).start();
        new C().run();
    }

    long timeBegin, timeEnd;

    void time() {
        timeEnd = System.currentTimeMillis();
        System.err.println("Time = " + (timeEnd - timeBegin));
    }

    @Override
    public void run() {
        try {
            timeBegin = System.currentTimeMillis();
            init();
            solve();
            out.close();
            time();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

    char[] normalize(char[] s) {
        boolean hasDot = false;

        ArrayDeque<Character> q = new ArrayDeque<>();
        for (char c : s) {
            hasDot |= c == '.';
            q.addLast(c);
        }
        while (!q.isEmpty() && q.peekFirst() == '0') {
            q.pollFirst();
        }
        while (!q.isEmpty() && hasDot && q.getLast() == '0') {
            q.pollLast();
        }
        if (!q.isEmpty() && q.peekLast() == '.') {
            q.pollLast();
        }
        if (!q.isEmpty() && q.peekFirst() == '.') {
            q.addFirst('0');
        }
        if (q.isEmpty()) {
            q.add('0');
        }

        s = new char[q.size()];
        for (int i = 0; i < s.length; i++) {
            s[i] = q.pollFirst();
        }

        return s;
    }

    void solve() throws IOException {
        String str = readString();
        char[] s = normalize(str.toCharArray());

        int dot = s.length;
        for (int i = 0; i < s.length; i++) {
            if (s[i] == '.') {
                dot = i;
            }
        }

        if (dot == 1 && s[0] == '0') {
            int b = 0;
            for (int i = 2; i < s.length; i++) {
                if (s[i] > '0') {
                    b = -(i - 1);
                    break;
                }
            }
            s = new String(s).replace(".", "").toCharArray();
            s = normalize(s);
            char[] ans = new char[s.length + 1];
            Arrays.fill(ans, '0');
            ans[1] = '.';
            for (int i = 0; i < s.length + 1; i++) {
                if (i == 0) {
                    ans[i] = s[i];
                    continue;
                }
                if (i == 1) continue;
                if (s[i - 1] == '.') {
                    continue;
                }
                ans[i] = s[i - 1];
            }

            ans = normalize(ans);
            for (char c : ans) {
                out.print(c);
            }
            if (b != 0) {
                out.print("E" + b);
            }
        } else {
            int b = dot - 1;
            s = new String(s).replace(".", "").toCharArray();
            char[] ans = new char[s.length + 1];
            Arrays.fill(ans, '0');
            ans[1] = '.';
            for (int i = 0; i < s.length + 1; i++) {
                if (i == 0) {
                    ans[i] = s[i];
                    continue;
                }
                if (i == 1) continue;
                if (s[i - 1] == '.') {
                    continue;
                }
                ans[i] = s[i - 1];
            }

            ans = normalize(ans);
            for (char c : ans) {
                out.print(c);
            }
            if (b != 0) {
                out.print("E" + b);
            }
        }
    }
}
