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

/**
 * Created by apple on 7/14/16.
 */
public class ProblemC {

    public static String eliminateBeginZero(String s) {
        for(int i = 0; i < s.length(); i++) {
            if (s.charAt(i) != '0')
                return s.substring(i);
        }
        return "";
    }

    public static String elimenateEndZero(String s) {
//        if (!s.endsWith("0")) return s;
        for(int i = s.length() - 1; i >= 0; i--) {
            if (s.charAt(i) != '0')
                return s.substring(0, i+1);
        }
        return "";
    }

    public static void main(String[] args) throws IOException {
        BufferedReader buffer=new BufferedReader(new InputStreamReader(System.in));
        String s = buffer.readLine();

//        while (s.startsWith("0")) s = s.substring(1);
        s = eliminateBeginZero(s);
//        System.out.println(s);

        if (s.contains(".")) {
//            while (s.endsWith("0")) s = s.substring(0, s.length() - 1);
            s = elimenateEndZero(s);
            if (s.startsWith(".")) {
                int pos = 0;
                for(int i = 1; i < s.length(); i++) {
                    if (s.charAt(i) != '0') {
                        pos = i;
                        break;
                    }
                }

                if (pos == s.length() - 1) {
                    System.out.print(s.charAt(pos) + "E" + (-pos));
                } else {
                    System.out.print(s.charAt(pos) + "." + s.substring(pos+1) + "E" + (-pos));
                }
            } else if (s.endsWith(".")) {
                String tmp = s.substring(1, s.length()-1);
                int num = tmp.length();

//                while (tmp.endsWith("0")) tmp = tmp.substring(0, tmp.length()-1);
                tmp = elimenateEndZero(tmp);

                if (tmp.length() == 0) {
                    if (num == 0) System.out.print(s.charAt(0));
                    else System.out.print(s.charAt(0) + "E" + num);
                } else {
                    System.out.print(s.charAt(0) + "." + tmp + "E" + num);
                }

            } else {
                if (s.charAt(1) == '.') {
                    System.out.print(s);
                } else {
                    System.out.print(s.charAt(0) + "." + s.substring(1, s.indexOf('.')) + s.substring(s.indexOf('.') + 1)
                            + "E" + s.substring(1,s.indexOf('.')).length());
                }
            }
        } else {
            if (s.length() == 1) {
                System.out.print(s);
            } else {
                String tmp = s.substring(1);
//                while (tmp.endsWith("0")) tmp = tmp.substring(0, tmp.length()-1);
                tmp = elimenateEndZero(tmp);

                if (tmp.length() == 0)
                    System.out.print(s.charAt(0) + "E" + (s.length()-1));
                else System.out.print(s.charAt(0) + "." + tmp + "E" +  (s.length()-1));
            }
        }

    }
}