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.*;
import java.math.*;
import static java.lang.Math.*;
import static java.lang.Integer.parseInt;
import static java.lang.Long.parseLong;
import static java.lang.Double.parseDouble;
import static java.lang.String.*;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder out = new StringBuilder();
        StringTokenizer tk;
        
        String s = in.readLine();
        
        if(s.contains(".")) {
            if(s.charAt(0)=='.') s = "0"+s;
            if(s.charAt(s.length()-1)=='.') s+="0";
            
            tk = new StringTokenizer(s);
            String a = tk.nextToken(".");
            if(a.equals("")) a = "0";
            String b = tk.nextToken();
            if(b.equals("")) b = "0";
            
            int i=0;
            while(i<a.length()-1 && a.charAt(i)=='0')
                i++;
            a = a.substring(i);
            
            i = b.length()-1;
            while(i>0 && b.charAt(i)=='0')
                i--;
            b = b.substring(0,i+1);
            
            if(a.equals("0") && b.equals("0")) {
                System.out.println("0");
                return;
            }
            
            if(b.equals("0")) {
                System.out.print(a.charAt(0));
                String tmp = a.substring(1);
                int j=tmp.length()-1;
                while(j>=0 && tmp.charAt(j)=='0')
                    j--;
                if(j>=0) System.out.println("."+tmp.substring(0,j+1)+(a.length()>1 ? "E"+(a.length()-1) : ""));
                else System.out.println(a.length()>1 ? "E"+(a.length()-1) : "");
                
                return;
            }
            
            if(a.equals("0")) {
                i = 0;
                
                while(i<b.length() && b.charAt(i)=='0')
                    i++;
                
                char c = b.charAt(i);
                b = b.substring(i+1);
                int j=0;
                while(j<b.length() && b.charAt(j)=='0')
                    j++;
                b = b.substring(j);
                
                System.out.println(c+(b.equals("0") || b.equals("") ? "" : ".")+b+"E"+(-i-1));
                return;
            }
            
            System.out.println(a.charAt(0)+"."+(a.substring(1))+b+(a.length()>1 ? "E"+(a.length()-1) : ""));
        } else {
            int i=0;
            while(i<s.length()-1 && s.charAt(i)=='0')
                i++;
            s = s.substring(i);
            
            if(s.equals("0")) {
                System.out.println("0");
                return;
            }
            
            System.out.print(s.charAt(0));
            String tmp = s.substring(1);
            i = tmp.length()-1;
            while(i>=0 && tmp.charAt(i)=='0')
                i--;
            if(i>=0) System.out.println("."+tmp.substring(0,i+1)+(s.length()>1 ? "E"+(s.length()-1) : ""));
            else System.out.println(s.length()>1 ? "E"+(s.length()-1) : "");
        }
    }
}