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:
/**
 * Created by ankeet on 7/13/16.
 */
import java.io.*;
import java.util.*;
import java.math.*;

public class C691 {

    public static BufferedReader read = null;
    public static PrintWriter out = null;
    public static StringTokenizer token = null;


    public static void solve()
    {
        String s = next();
        if(s.contains(".") && !(s.endsWith(".")))
        {
            char[] v = s.toCharArray();
            int n = v.length;
            int i =0, j = n-1;
            while(v[i] == '0') i++;
            while(v[j] == '0') j--;

            if(v[i] == '.')
            {
                int decloc = i;
                i++;
                while(v[i] == '0') i++;
                int fd = i;
                out.print(v[i]);
                if(i<j) out.print('.');
                else
                {
                    out.print("E");
                    int b = -(i-decloc);
                    out.print(b);
                    return;
                }
                i++;
                for(;i<=j; i++) out.print(v[i]);
                out.print("E");
                out.print(-(fd-decloc));

            }
            else
            {
                if(v[j] == '.')
                {
                    int decloc = j;
                    j--;
                    while(v[j] == '0') j--;

                    if( i == j)
                    {
                        out.print(v[i]);
                        if(decloc-j > 1)
                        {
                            out.print("E" + (decloc-j-1));
                        }

                    }
                    else
                    {
                        int fd = i;
                        out.print(v[i]+".");
                        i++;
                        for(;i<=j;i++)out.print(v[i]);
                        out.print('E');
                        out.print(decloc-fd-1);

                    }

                }
                else
                {

                    int fd = i;
                    out.print(v[i]+".");
                    i++;
                    for(;i<=j;i++)
                    {
                        if(v[i] != '.') out.print(v[i]);
                    }
                    int d = s.indexOf(".");
                    if(d-fd-1 > 0)
                    {
                        out.print("E" + (d-fd-1));
                    }

                }
            }
        }
        else
        {
            if(s.endsWith("."))
            {
                s = s.substring(0, s.length()-1);
            }
            char[] v = s.toCharArray();
            int n = v.length;
            int i = 0;
            while(v[i] =='0')i++;
            if(i == n-1)
            {
                out.println(v[i]);

            }
            else
            {
                out.print(v[i]);
                int loc = i;

                int j = n-1;
                while(v[j] == '0') j--;
                if(i<j) out.print(".");
                i++;
                for(;i<=j;i++) out.print(v[i]);
                int b = (n-1)-loc;
                out.println("E"+b);

            }

        }

    }

    public static void main(String[] args)
    {
        read = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        solve();
        out.flush();
        out.close();

    }

    // i/o functions
    public static String next() // returns the next string
    {
        while(token == null || !token.hasMoreTokens())
        {
            try {
                token = new StringTokenizer(read.readLine());
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
        return token.nextToken();
    }

    public static int nint()
    {
        return Integer.parseInt(next());
    }
    public static long nlong()
    {
        return Long.parseLong(next());
    }
    public static double ndouble()
    {
        return Double.parseDouble(next());
    }
    public static int[] narr(int n)
    {
        int[] a = new int[n];
        for(int i=0; i<n; i++) a[i] = nint();
        return a;
    }

    public static long[] nlarr(int n)
    {
        long[] a = new long[n];
        for(int i=0; i<n; i++) a[i] = nlong();
        return a;
    }


}