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.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.util.StringTokenizer;

public class C {
	public static void main(String[] args) throws IOException {
		File inputFile = new File("entradaC");
		if (inputFile.exists())
			System.setIn(new FileInputStream(inputFile));
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder out = new StringBuilder();
		String line = "";
		while ((line = in.readLine()) != null) {
			if (line.equals("")) {
				out.append("0\n");
				continue;
			}
			char[] n = line.toCharArray();
			int point = -1, firstA = -1, lastA = -1, firstB = -1, lastB = -1;
			for (int i = 0; i < n.length; i++) {
				if (n[i] == '.')
					point = i;
				if (point == -1 && n[i] != '0') {
					if (firstA == -1 ) firstA = i;
					if(firstA != -1 )  lastA = i;
				}
				if (point != -1 && n[i] != '.' && n[i] != '0') {
					if (firstB == -1 ) firstB = i;
					if(firstB != -1) lastB = i;
				}
			}
			int pow = 0;
			if (firstA == -1) {
				if (lastB == -1) {//.
					out.append("0");
				} else {//.YY
					out.append(n[firstB]);
					if(firstB != lastB) out.append('.');
					for (int i = firstB + 1; i <= lastB; i++) 
						out.append(n[i]);
					pow = point - firstB;
					if(pow!=0) out.append("E"+pow);
				}
			} else {
				if (lastB == -1) {//XX.
					out.append(n[firstA]);
					if(firstA != lastA) out.append('.');
					if(point == -1) point = n.length;
					for (int i = firstA + 1; i < point; i++) {
						if(i <= lastA) out.append(n[i]);
						pow++;
					}
					if(pow!=0) out.append("E"+pow);
				} else { //XX.YY
					point  = -1;
					out.append(n[firstA]);
					out.append('.');
					for (int i = firstA + 1; i <= lastB; i++) {
						if(n[i] == '.') point  = i;
						if(n[i] != '.') out.append(n[i]);
						if(point == -1) pow++;
					}
					if(pow!=0) out.append("E"+pow);
				}
			}
			out.append('\n');
		}
		System.out.print(out);
	}

	static int[] readInts(String line) {
		StringTokenizer st = new StringTokenizer(line.trim());
		int a[] = new int[st.countTokens()], index = 0;
		while (st.hasMoreTokens())
			a[index++] = Integer.parseInt(st.nextToken());
		return a;
	}

	static long[] readLongs(String line) {
		StringTokenizer st = new StringTokenizer(line.trim());
		long a[] = new long[st.countTokens()];
		int index = 0;
		while (st.hasMoreTokens())
			a[index++] = Long.parseLong(st.nextToken());
		return a;
	}

	static double[] readDoubles(String line) {
		StringTokenizer st = new StringTokenizer(line.trim());
		double a[] = new double[st.countTokens()];
		int index = 0;
		while (st.hasMoreTokens())
			a[index++] = Double.parseDouble(st.nextToken());
		return a;
	}
}