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.*;
import java.util.Locale;
import java.util.StringTokenizer;

public class Main {
    public void solve() throws IOException {
     

        // write your code here
        String s = nextToken();
        int n = s.length ();
        char str[] = new char[n];
        int k = 0;
        boolean t = false;
        int kor = 0;
        for (int i = 0; i < n; i++) {
            str[i] = s.charAt (i);
            if (str[i] == '.') {
                t = true;
                kor  = i;
            }
        }
        if (t) {
            boolean cnt = false;
            int m = 0, x = -1, y = n - 1;
            for (int i = 0; i < n; i++) {
                if (str[i] != '0') {
                    if (str[i] != '.') {
                        if (x == -1) x = i;
                        cnt = true;
                        m++;
                    } else break;
                } else {
                    if (cnt) m++;
                }
            }
            m--;
            if (x != -1) {
                for (int i = n - 1; i >= 0; i--) {
                    if (str[i] != '0' && str[i] != '.') {
                        y = i;
                        break;
                    }
                }
                out.print (str[x]);
                if (x != y) out.print (".");
                for (int i = x + 1; i <= y; i++) {
                    if (str[i] != '.') out.print (str[i]);
                }
                if (m != 0) out.print ("E" + m);
            }
            else{
                for (int i = kor + 1; i < n; i++) {
                    if (str[i] != '0') {
                        x = i;
                        break;
                    }
                }
                for (int i = n - 1; i >= 0; i--) {
                    if (str[i] != '0' && str[i] != '.') {
                        y = i;
                        break;
                    }
                }
                m = kor - x;
                out.print (str[x]);
                if (x != y) out.print (".");
                for (int i = x + 1; i <= y; i++) {
                    if (str[i] != '.') out.print (str[i]);
                }
                if (m != 0) out.print ("E" + m);
            }
        } else {
            boolean cnt = false;
            int m = 0, x = -1, y = n - 1;
            for (int i = 0; i < n; i++) {
                if (str[i] != '0') {

                    if (x == -1) x = i;
                    cnt = true;
                    m++;
                } else {
                    if (cnt) m++;
                }
            }
            m--;
            for (int i = n - 1; i >= 0; i--) {
                if (str[i] != '0') {
                    y = i;
                    break;
                }
            }
            out.print (str[x]);
            if (x != y) out.print (".");
            for (int i = x + 1; i <= y; i++) {
                if (str[i] != '.') out.print (str[i]);
            }
            if (m != 0) out.print ("E" + m);
        }


        out.close ();

    }

    BufferedReader br;
    StringTokenizer sc;
    PrintWriter out;

    public String nextToken() throws IOException {
        while (sc == null || !sc.hasMoreTokens ()) {
            try {
                sc = new StringTokenizer (br.readLine ());
            } catch (Exception e) {
                return null;
            }
        }
        return sc.nextToken ();
    }

    public int nextInt() throws IOException {
        return Integer.parseInt (nextToken ());
    }

    public double nextDouble() throws IOException {
        return Double.parseDouble (nextToken ());
    }

    public long nextLong() throws IOException {
        return Long.parseLong (nextToken ());
    }

    public static void main(String[] args) throws IOException {
        Locale.setDefault (Locale.US);
        new Main ().run ();
    }

    public void run() {
        try {
            br = new BufferedReader (new InputStreamReader (System.in));
            out = new PrintWriter (System.out);

            solve ();

            out.close ();
        } catch (IOException e) {
            e.printStackTrace ();
            System.exit (1);
        }
    }
}