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.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.Stack;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;



public class E14C {

	static StringTokenizer st;
	static BufferedReader br;
	static PrintWriter pw;

	public static void main(String[] args) throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		String s = next();
		int ind = s.indexOf('.');
		if (ind == -1 || ind == s.length() - 1) {
			if (ind == s.length() - 1)
				s = s.substring(0, ind);
			int i;
			for (i = 0; i < s.length(); ++i) {
				if (s.charAt(i) != '0')
					break;
			}
			if (s.length() - i > 1) {
				pw.print(s.charAt(i));
				int last;
				for (last = s.length() - 1; s.charAt(last) == '0'; --last);
				if (last > i)
					pw.print("." + s.substring(i + 1, last + 1));
				pw.print("E" + (s.length() - i - 1));
			} else if (s.length() - i == 1) {
				pw.print(s.substring(i));
			} else
				pw.print(0);
		} else {
			int bind, lind;
			for (bind = 0; s.charAt(bind) == '0'; ++bind);
			for (lind = s.length() - 1; s.charAt(lind) == '0'; --lind);
			s = s.substring(bind, lind + 1);
			ind = s.indexOf('.');
			if (ind == s.length() - 1) {
				s = s.substring(0, ind);
				int i;
				for (i = 0; i < s.length(); ++i) {
					if (s.charAt(i) != '0')
						break;
				}
				if (s.length() - i > 1) {
					pw.print(s.charAt(i));
					int last;
					for (last = s.length() - 1; s.charAt(last) == '0'; --last);
					if (last > i)
						pw.print("." + s.substring(i + 1, last + 1));
					pw.print("E" + (s.length() - i - 1));
				} else if (s.length() - i == 1) {
					pw.print(s.substring(i));
				} else
					pw.print(0);
			} else if (ind == 0) {
				ind = 1;
				for (; s.charAt(ind) == '0'; ++ind);
				if (s.length() - ind == 1) {
					pw.print(s.charAt(ind) + "E-" + ind);
				} else {
					pw.print(s.charAt(ind) + "." + s.substring(ind + 1) + "E-" + ind);
				}
			} else if (ind == 1){
				pw.print(s);
			} else {
				pw.print(s.charAt(0) + ".");
				pw.print(s.substring(1, ind));
				pw.print(s.substring(ind + 1));
				pw.print("E" + (ind - 1));
			}
			//for (ind = 0)
		}
		pw.close();
	}
	
	private static int sumf(int[] fen, int id) {
		int summ = 0;
		for (; id >= 0; id = (id & (id + 1)) - 1) 
 			summ += fen[id];
		return summ;
	}

	private static void addf(int[] fen, int id) {
		for (; id < fen.length; id |= id + 1) 
			fen[id]++;
	}

	private static int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	private static long nextLong() throws IOException {
		return Long.parseLong(next());
	}
	private static double nextDouble() throws IOException {
		return Double.parseDouble(next());
	}
	private static String next() throws IOException {
		while (st==null || !st.hasMoreTokens())
			st = new StringTokenizer(br.readLine());
		return st.nextToken();
	}
}