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.text.DecimalFormat;
import java.math.BigDecimal;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
public class Main {
	static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
	static boolean tj,fu;
	static char[] a;
	static int wei,op,ed;
	public static void main(String args[])throws IOException{
		BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
		String str=bf.readLine();
		a=str.toCharArray();
		int lth=a.length;
		wei=lth;
		for(int i=0;i<lth;i++)if(a[i]=='.'){
			wei=i;
			break;
		}
		int i=0;
		while(a[i]=='0'||a[i]=='.'){
			if(a[i]=='.')i++;
			if(a[i]=='0'){
				wei--;
				i++;
			}
		}
		wei--;
		out.print(a[i]);
		i++;
		boolean can=true;
		for(int j=i;j<lth;j++){
			if(a[j]!='0'&&a[j]!='.'){
				can=false;
				break;
			}
		}
		if(!can)out.print(".");	
		for(;i<lth;i++){
			if(a[i]=='0')ed++;
			else if(a[i]!='.'){
				while(op<ed){
					out.print(0);
					op++;
				}
				out.print(a[i]);
			}
		}
		if(wei!=0)out.print("E"+wei);
		out.flush();
	}
}