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

	import java.util.*;
	import java.io.*;
	/**
	 *
	 * @author umang
	 */

	public class C691 {

		public static void main(String[] args) {
	 
			InputReader in = new InputReader(System.in);
			PrintWriter w = new PrintWriter(System.out);
			
			String s = in.readString();
			String str;
			int i=0;
			while(i<s.length() && s.charAt(i)=='0'){
				i++;
			}
			int j=s.length()-1;      
			int l;
			if(s.contains(".")){
				while(j>0 && s.charAt(j)=='0'){
					j--;
				}		
				str = s.substring(i,j+1);
//				w.println(str);
				l=str.length();
				if(str.charAt(0)=='.'){
					j=1;
					while(j<l && str.charAt(j)=='0'){
						j++;
					}
					w.print(str.charAt(j));
					if(j<l-1) w.print(".");
					w.print(str.substring(j+1)+"E-"+(j));
				}
				else if(str.charAt(l-1)=='.'){
					j=l-2;
					while(j>0 && str.charAt(j)=='0'){
						j--;
					}
					w.print(str.charAt(0));
					if(j>0) w.print(".");
					w.print(str.substring(1,j+1));
					if(l-2>0) w.print("E"+(l-2));
				}
				else{
					j=1;
					while(j<l && str.charAt(j)!='.'){
						j++;
					}
					w.print(str.charAt(0)+".");
					w.print(str.substring(1,j)+str.substring(j+1));
					if(j>1)
						w.print("E"+(j-1));
				}
			}
			else{
				str = s.substring(i);
				l=str.length();
				j=l-1;
				while(j>0 && str.charAt(j)=='0'){
					j--;
				}
				
				if(l<=1){
					w.println(str);
				}
				else{
				//	System.out.println(i+" "+j+" "+l);
					w.print(str.charAt(0));
					if(j>0) w.print(".");		
					w.print(str.substring(1,j+1)+"E"+(l-1));
				}
			}
			w.close();
		}
		
		static class InputReader {

			private final InputStream stream;
			private final byte[] buf = new byte[8192];
			private int curChar, snumChars;
			private SpaceCharFilter filter;

			public InputReader(InputStream stream) {
				this.stream = stream;
			}

			public int snext() {
				if (snumChars == -1)
					throw new InputMismatchException();
				if (curChar >= snumChars) {
					curChar = 0;
					try {
						snumChars = stream.read(buf);
					} catch (IOException e) {
						throw new InputMismatchException();
					}
					if (snumChars <= 0)
						return -1;
				}
				return buf[curChar++];
			}

			public int nextInt() {
				int c = snext();
				while (isSpaceChar(c))
					c = snext();
				int sgn = 1;
				if (c == '-') {
					sgn = -1;
					c = snext();
				}
				int res = 0;
				do {
					if (c < '0' || c > '9')
						throw new InputMismatchException();
					res *= 10;
					res += c - '0';
					c = snext();
				} while (!isSpaceChar(c));
				return res * sgn;
			}

			public long nextLong() {
				int c = snext();
				while (isSpaceChar(c))
					c = snext();
				int sgn = 1;
				if (c == '-') {
					sgn = -1;
					c = snext();
				}
				long res = 0;
				do {
					if (c < '0' || c > '9')
						throw new InputMismatchException();
					res *= 10;
					res += c - '0';
					c = snext();
				} while (!isSpaceChar(c));
				return res * sgn;
			}

			public int[] nextIntArray(int n) {
				int a[] = new int[n];
				for (int i = 0; i < n; i++)
					a[i] = nextInt();
				return a;
			}

			public String readString() {
				int c = snext();
				while (isSpaceChar(c))
					c = snext();
				StringBuilder res = new StringBuilder();
				do {
					res.appendCodePoint(c);
					c = snext();
				} while (!isSpaceChar(c));
				return res.toString();
			}

			public boolean isSpaceChar(int c) {
				if (filter != null)
					return filter.isSpaceChar(c);
				return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
			}

			public interface SpaceCharFilter {
				public boolean isSpaceChar(int ch);
			}
		}
	}    

