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.lang.*;
import java.math.BigDecimal;
import java.util.*;

public class main {
	
	static MyScanner sc = new MyScanner();
	
	public static void main(String[] args) {
		
		String s = sc.next();
		
		int i = 0;
		int n = s.length();
		int j = n-1;
		
		
		while (i<n && s.charAt(i) == '0') 
			i++;
		while (j>-1 && s.charAt(j) == '0')
			j--;
		
		s = s.substring(i, j+1);
		
		if (!s.contains(".")) {
			if (n == 1) {
				System.out.println(s);
			} else if (s.length() == 1){
				System.out.println(s + "E" + (s.length() + n - j - 2));
			} else {
				System.out.println(s.charAt(0) + "." + s.substring(1) + "E" + (s.length() + n - j - 2));
			}
		} else if (s.charAt(s.length()-1) == '.'){
			s = s.substring(0,s.length()-1);
			n = s.length();
			j = n-1;
			
			while (j>-1 && s.charAt(j) == '0')
				j--;
			s = s.substring(0,j+1);
			if (n == 1) {
				System.out.println(s);
			} else if (s.length() == 1){
				System.out.println(s.charAt(0) + "E" + (s.length() + n - j - 2));
			} else {
				System.out.println(s.charAt(0) + "." + s.substring(1) + "E" + (s.length() + n - j - 2));
			}
		} else if (s.charAt(0) == '.'){
			int pos = 1;
			n = s.length();
			while (pos<n && s.charAt(pos) == '0')
				pos++;
			s = s.substring(pos);
			if ((s.substring(1)).length() == 0) {
				System.out.println(s.charAt(0) + "E-" + pos);
			} else {
				System.out.println(s.charAt(0) + "." + s.substring(1) + "E-" + pos);
			}
		} else {
			String [] arr = s.split("\\.");
			if (s.indexOf('.') == 1) {
				System.out.println(s);
			} else {
				System.out.println(arr[0].charAt(0) + "." + arr[0].substring(1) + arr[1] +"E" + (s.indexOf('.')-1));
			}
		}
		
	}

    //-----------MyScanner class for faster input----------
    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
	
}