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.IOException;
import java.io.*;
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		InputReader sc = new InputReader(System.in);
		OutputStream outputStream = System.out;
		PrintWriter out = new PrintWriter(outputStream);

		
		
		
		
		String s=sc.nextLine();
		String[] arr=s.split("\\.");
		//System.out.println(arr.length);
		if(arr[0].length()==0)
		{
			int i=0;
			String one="";
			String two="";
			int count=0;
			
			for( i=0;i<arr[1].length();i++)
			{
				
				if(arr[1].charAt(i)!='0')
				{
					one=one+arr[1].charAt(i);
					count++;
					break;
				}
				else
					count++;
			}
			
			for(int j=arr[1].length()-1;j>i;j--)
			{
				if(arr[1].charAt(j)!='0')
				{
					two=two+arr[1].substring(i+1,j+1);
					break;
				}
			}
			if(two.length()>0)
				System.out.println(one+"."+two+"E-"+count);
			else
				System.out.println(one+"E-"+count);
		}
		else
		{
			String one="";
			String two="";
			int count=0;
			int i=0;
			int len=arr[0].length();
			for( i=0;i<arr[0].length();i++)
			{
				if(arr[0].charAt(i)!='0')
				{
					arr[0]=arr[0].substring(i,arr[0].length());
					break;
				}
			}
			if(i==len)
			{
			//	System.out.println(i);
				for( i=0;i<arr[1].length();i++)
				{
					
					if(arr[1].charAt(i)!='0')
					{
						one=one+arr[1].charAt(i);
						count++;
						break;
					}
					else
						count++;
				}
				
				for(int j=arr[1].length()-1;j>i;j--)
				{
					if(arr[1].charAt(j)!='0')
					{
						two=two+arr[1].substring(i+1,j+1);
						break;
					}
				}
				if(two.length()>0)
					System.out.println(one+"."+two+"E-"+count);
				else
					System.out.println(one+"E-"+count);
			}
			else
			{
				one=one+arr[0].charAt(0);
				two=two+arr[0].substring(1,arr[0].length());
				if(s.contains(".") && arr.length>1)
				{
					for(int j=arr[1].length()-1;j>=0;j--)
					{
						if(arr[1].charAt(j)!='0')
						{
							two=two+arr[1].substring(0,j+1);
							break;
						}
					}
				}
				count=arr[0].length()-1;
				//System.out.println(one+"  "+two+" "+i);
				for(i=two.length()-1;i>=0;i--)
				{
				//	System.out.println(one+"  "+two+" "+i);
					if(two.charAt(i)!='0')
					{
						two=two.substring(0,i+1);
						break;
					}
				}
				//System.out.println(one+"  "+two+" "+i);
				if(i==-1)
					two="";
				if(two.length()>0)
				{
					if(count!=0)
						System.out.println(one+"."+two+"E"+count);
					else
						System.out.println(one+"."+two);
				}
				else
				{
					if(count!=0)
						System.out.println(one+"E"+count);
					else
						System.out.println(one);

				}
			}
		}
	}
}

class InputReader {
	public BufferedReader reader;
	public StringTokenizer tokenizer;

	public InputReader(InputStream inputstream) {
		reader = new BufferedReader(new InputStreamReader(inputstream));
		tokenizer = null;
	}

	public String nextLine(){
		String fullLine=null;
		while (tokenizer == null || !tokenizer.hasMoreTokens()) {
			try {
				fullLine=reader.readLine();
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
			return fullLine;
		}
		return fullLine;
	}
	public String next() {
		while (tokenizer == null || !tokenizer.hasMoreTokens()) {
			try {
				tokenizer = new StringTokenizer(reader.readLine());
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		}
		return tokenizer.nextToken();
	}
	public long nextLong() {
		return Long.parseLong(next());
	}
	public int nextInt() {
		return Integer.parseInt(next());
	}
}