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

public class Problem691C
{
    public static boolean isLessThanOne(String s)
    {
        int i = 0;
        while (i < s.length() && s.charAt(i) != '.')
        {
            if (s.charAt(i) != '0')
            {
                return false;
            }
            i++;
        }
        return true;
    }

    public static String eraseTrailingZeros(String s)
    {
        int i = s.length() - 1;
        while (i >= 0 && s.charAt(i) == '0')
            i--;
        if (i < 0)
            return "";
        else
            return s.substring(0, i+1);
    }

    public static void lessThanOne(String s)
    {
        int i = 0;
        while (s.charAt(i) != '.')
            i++;
        s = s.substring(i+1, s.length());
        i = 1;
        while (s.charAt(i-1) == '0')
            i++;
        String a = s.substring(i-1, i);
        String b = eraseTrailingZeros(s.substring(i, s.length()));
        if (b.equals(""))
        {
            System.out.printf(a + "E%d\n", -1 * i);
            System.exit(0);
        }
        else
        {
            System.out.printf(a + "." + b + "E%d\n", -1 * i);
            System.exit(0);
        }
    }

    public static String eraseLeadingZeroes(String s)
    {
        int i = 0;
        while (s.charAt(i) == '0')
            i++;
        return s.substring(i, s.length());
    }

    public static int findLog(String s)
    {
        int i = 0;
        while (i < s.length() && s.charAt(i) != '.')
            i++;
        return i - 1;
    }

    public static void moreThanOne(String s)
    {
        s = eraseLeadingZeroes(s);

        int i = findLog(s);

        String a = s.substring(0, 1);
        int p = 0;
        while (p < s.length() && s.charAt(p) != '.')
            p++;
        String b;
        if (p < s.length())
            b = eraseTrailingZeros(s.substring(1, p) + s.substring(p+1, s.length()));
        else
            b = eraseTrailingZeros(s.substring(1, p));

        if (b.equals(""))
        {
            if (i != 0)
                System.out.printf(a + "E%d\n", i);
            else
                System.out.println(a);
        }
        else
        {
            if (i != 0)
                System.out.printf(a + "." + b + "E%d\n", i);
            else
                System.out.println(a + "." + b);
        }
        System.exit(0);
    }

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

        if (isLessThanOne(s))
        {
            lessThanOne(s);
        }
        else
        {
            moreThanOne(s);
        }
    }
}