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.*;

public class SNotation {
    
    static String number;
    final static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    static void trim(){

        int dotIndex ,a, b, n = number.length();
        if(n == 0)
            return;

        dotIndex = a = b = -1;
        for(int i = 0; i < n; ++i)
            if(number.charAt(i) == '.'){

                dotIndex = i;
                break;

            }

        if(dotIndex == -1){

            for(int i = 0; i < n; ++i)  
                if(number.charAt(i) != '0'){

                    a = i;
                    break;
                }
            
            if(a == -1)
                number = "";
            
            else
                number = number.substring(a, n);
        }

        else{

            for(int i = 0; i < n; ++i)
                if(number.charAt(i) != '0' || i == dotIndex){

                    a = i;
                    break;
                }  

             for(int i = n - 1; i > 0; --i)
                 if(number.charAt(i) != '0' || i == dotIndex){

                    b = i + 1;
                    break;
                }  

            number = number.substring(a, b);
            
        }

    }
    
    public static void main(String[] args) throws IOException {

        number = reader.readLine().trim();
        trim();

        int dotIndex = -1, n = number.length();
        
        for(int i = 0; i < n ; ++i)
            if(number.charAt(i) == '.'){
                dotIndex = i;
                break;
            }


        if(n == 0 || (number.length() == 1 && number.charAt(0) == '.'))
            System.out.println(0);
            

        

        else if(n == 1){

            System.out.println(number);
            return;
        }

        else if(dotIndex == -1){

            number = number.charAt(0) + "." + number.substring(1, n);
            trim();
            number = number.length() == 2 ? Character.toString(number.charAt(0)) : number;
            System.out.println(number + "E" + (n - 1));
        
        }

        else if(dotIndex == 0){

            int i = 1;
            for(; i < n; ++i)
                if(number.charAt(i) != '0')
                    break;

            i++;

            number = number.substring(1, i) + "."+  number.substring(i, n);
            trim();

            if(number.length() == 2)
                System.out.println(number.charAt(0) + "E-" + (i - 1));

           else 
               System.out.println(number + "E-" + (i - 1));
        }

        else if(dotIndex == 1)
            System.out.println(number.length() > 2 ? number : number.charAt(0));

        else if(dotIndex > 1){

            number = number.charAt(0) + "." + number.substring(1, dotIndex) + number.substring(dotIndex + 1, number.length());
            trim();
            number = number.length() == 2 ? Character.toString(number.charAt(0)) : number;
            System.out.println(number + "E" + (dotIndex - 1));
            

        }

    }


}