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.*;
public class C691 {
public static void main(String[] args) throws IOException {
	input.init(System.in);
	PrintWriter out = new PrintWriter(System.out);
	String s = input.next();
	if(s.indexOf('.') == -1) s += '.';
	int count = 0;
	for(int i = 0; i<s.length(); i++)
		if(s.charAt(i) == '0')
			count++;
		else 
			break;
	s = s.substring(count);
	count = 0;
	while(s.charAt(s.length()-count-1) == '0') count++;
	s = s.substring(0,s.length()-count);
	int idx = s.indexOf('.');
	String t = s.substring(0, idx) + s.substring(idx+1);
	if(t.length() == 1)
	{
		out.println(idx == 0 ? (t + "E-1") : t);
		out.close();
		return;
	}
	int nonZero = -1;
	for(int i = 0; i<s.length() && nonZero == -1; i++)
	{
		if(s.charAt(i) != '0' && s.charAt(i) != '.') nonZero = i;
	}
	if(nonZero == -1)
	{
		out.println(0);
		out.close();
		return;
	}
	//out.println(s+" "+nonZero);
	int pow = idx - (nonZero + 1);
	if(pow < 0) pow++;
	String u = trim((s.substring(1+nonZero)).replace(".", ""));
	out.println(s.charAt(nonZero)+(u.length() > 0 ? "." : "")+u+(pow == 0 ? "" : ("E"+pow)));
	out.close();
}
static String trim(String s)
{
	int count = 0;
	while(count < s.length() && (s.charAt(s.length()-count-1) == '0')) count++;
	return s.substring(0,s.length()-count);
	
}
public static class input {
	static BufferedReader reader;
	static StringTokenizer tokenizer;

	static void init(InputStream input) {
		reader = new BufferedReader(new InputStreamReader(input));
		tokenizer = new StringTokenizer("");
	}

	static String next() throws IOException {
		while (!tokenizer.hasMoreTokens())
			tokenizer = new StringTokenizer(reader.readLine());
		return tokenizer.nextToken();
	}

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

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

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