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.util.Arrays;
import java.util.Scanner;

public class Main 
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		String str = input.next();
		char a[] = str.toCharArray();
		Arrays.sort(a);
		
		if( Arrays.binarySearch(a, '.') == -1)
			str += ".";
		
		System.out.println(simpleExponentialNotation(str));
	}
	
	public static String toStandard( String str )
	{
		String s = "";
		int sIndex = 0, eIndex = 0, index = 0;
		
		for( int i = 0 ; i < str.length() ; i++)
		{
			if( str.charAt(i) == '0' )
				continue;
			
			if( str.charAt(i) == '.')
			{
				sIndex = -1;
				index = i;
				break;
			}
			
			sIndex = i;
			break;
		}
		
		for( int i = str.length() - 1 ; i >= 0 ; i-- )
		{
			if( str.charAt(i) == '0' )
				continue;
			
			if( str.charAt(i) == '.')
			{
				eIndex = i - 1;
				break;
			}
			
			eIndex = i;
			break;
		}
		
		if( sIndex == -1 )
		{
			s = "0";
			sIndex = index;
		}
		
		s += str.substring(sIndex, eIndex + 1);
		return s;
	}
	
	public static String simpleExponentialNotation(String str)
	{
		String s = toStandard(str);
		String s1 = s;
		int index = -1, sIndex = -1;
		
		if( s.equals("0") )
			return "0";
		
		char a[] = s.toCharArray();
		Arrays.sort(a);
		if( Arrays.binarySearch(a, '.') == -1 )
			index = s.length();
		
		for( int i = 0 ; i < s.length() && ( sIndex == -1 || index == -1 ) ; i++ )
		{
			if( s.charAt(i) == '.' )
			{
				index = i;
				continue;
			}
			
			if( s.charAt(i) != '0' && sIndex == -1 )
			{
				sIndex = i;
			}
		}
		
		if( index - 1 == 0 && s.charAt(0) != '0')
			return s;
		
		if (index == s.length())
			s1 = s.substring(sIndex, index);
		else if( index < sIndex )
			s1 = s.substring(sIndex);
		else
			s1 = s.substring(sIndex, index) + s.substring(index + 1);
		
		if( sIndex > index )
		{
			if( s1.length() == 1 ) 
				return toStandard("" + s1.charAt(0))+ "E" + (index - sIndex);
				
			return toStandard(s1.charAt(0) + "." + s1.substring(1) )+ "E" + (index - sIndex);
		}
		
		return toStandard(s1.charAt(0) + "." + s1.substring(1) )+ "E" + (index - 1);
	}
}