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.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.NoSuchElementException;

public class C {
	String x;

	public String trimZero(String s){

		int left = 0;

		while(left < s.length() && s.charAt(left) == '0'){
			left++;
		}

		s = s.substring(Math.max(0,left));

		int right = s.length() - 1;

		while(right >= 0 && s.charAt(right) == '0'){
			right--;
		}

		s = s.substring(0,right + 1);
		return s;
	}

	public void solve() {
		x = next();

		if(x.indexOf(".") == -1){
			x += ".";
		}

		x = trimZero(x);

		StringBuilder sb = new StringBuilder(x);
		StringBuilder newSb = new StringBuilder();
		int i = 0;
		boolean find = false;
		for(i = 0;i < sb.length();i++){
			if(sb.charAt(i) == '.')continue;
			newSb.append(sb.charAt(i));

			if(!find && sb.charAt(i) <= '9' && sb.charAt(i) >= '1'){
				find = true;
				newSb.append(".");
			}
		}
		int e = sb.indexOf(".") - newSb.indexOf(".");
		String ans = trimZero(newSb.toString());

		ans = ans.replaceAll("\\.$", "");

		if(e != 0){
			ans = ans + "E" + e;
		}

		out.println(ans);

	}

	public static void main(String[] args) {
		out.flush();
		new C().solve();
		out.close();
	}

	/* Input */
	private static final InputStream in = System.in;
	private static final PrintWriter out = new PrintWriter(System.out);
	private final byte[] buffer = new byte[2048];
	private int p = 0;
	private int buflen = 0;

	private boolean hasNextByte() {
		if (p < buflen)
			return true;
		p = 0;
		try {
			buflen = in.read(buffer);
		} catch (IOException e) {
			e.printStackTrace();
		}
		if (buflen <= 0)
			return false;
		return true;
	}

	public boolean hasNext() {
		while (hasNextByte() && !isPrint(buffer[p])) {
			p++;
		}
		return hasNextByte();
	}

	private boolean isPrint(int ch) {
		if (ch >= '!' && ch <= '~')
			return true;
		return false;
	}

	private int nextByte() {
		if (!hasNextByte())
			return -1;
		return buffer[p++];
	}

	public String next() {
		if (!hasNext())
			throw new NoSuchElementException();
		StringBuilder sb = new StringBuilder();
		int b = -1;
		while (isPrint((b = nextByte()))) {
			sb.appendCodePoint(b);
		}
		return sb.toString();
	}

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

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

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