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.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;

/*
 public class _691C {

 }

 */

public class _691C
{
	public void solve() throws FileNotFoundException
	{
		InputStream inputStream = System.in;

		InputHelper inputHelper = new InputHelper(inputStream);

		PrintStream out = System.out;

		// actual solution
		String s = inputHelper.read();

		int n = s.length();

		int i = 0;

		while (i < n && s.charAt(i) == '0')
		{
			i++;
		}

		if (i == n)
		{
			System.out.println("0");
			return;
		}

		s = s.substring(i);

		n = s.length();

		if (s.charAt(0) == '.')
		{
			if (n == 1)
			{
				System.out.println("0");
				return;
			}

			String ans = "";

			int j;
			for (j = n - 1; j > 0; j--)
			{
				if (s.charAt(j) != '0')
					break;
			}

			if (j == 0)
			{
				System.out.println("0");
				return;
			}

			int k = 1;

			for (; k <= j; k++)
			{
				if (s.charAt(k) != '0')
					break;
			}

			ans += s.substring(k, k + 1);

			if (j > k)
			{
				ans += ".";
				ans += s.substring(k + 1, j + 1);
			}
			ans += "E";

			ans += String.valueOf(-k);

			System.out.println(ans);
			return;
		}
		else
		{
			String ans = s.substring(0, 1);

			int j;
			for (j = n - 1; j > 0; j--)
			{
				if (s.charAt(j) != '0' && s.charAt(j) != '.')
					break;
			}

			int k;
			for (k = n - 1; k > 0; k--)
			{
				if (s.charAt(k) == '.')
					break;
			}

			if (k == 0)
			{
				k = n;
			}

			if (j < k)
			{
				if (j > 0)
				{
					ans += ".";
					ans += s.substring(1, j + 1);
				}

				if (k - 1 > 0)
				{
					ans += "E";
					ans += String.valueOf(k - 1);
				}

				System.out.println(ans);
				return;
			}
			else
			{
				ans += ".";
				// for (int l = 1; l <= j; l++)
				// {
				// if (s.charAt(l) != '.')
				// {
				// ans += s.charAt(l);
				// }
				// }

				ans += s.substring(1, j + 1).replace(".", "");

				if (k - 1 > 0)
				{
					ans += "E";
					ans += String.valueOf(k - 1);
				}

				System.out.println(ans);
				return;
			}
		}
		// end here
	}

	public static void main(String[] args) throws FileNotFoundException
	{
		(new _691C()).solve();
	}

	class InputHelper
	{
		StringTokenizer tokenizer = null;
		private BufferedReader bufferedReader;

		public InputHelper(InputStream inputStream)
		{
			InputStreamReader inputStreamReader = new InputStreamReader(
					inputStream);
			bufferedReader = new BufferedReader(inputStreamReader, 16384);
		}

		public String read()
		{
			while (tokenizer == null || !tokenizer.hasMoreTokens())
			{
				try
				{
					String line = bufferedReader.readLine();
					if (line == null)
					{
						return null;
					}
					tokenizer = new StringTokenizer(line);
				}
				catch (IOException e)
				{
					e.printStackTrace();
				}
			}

			return tokenizer.nextToken();
		}

		public Integer readInteger()
		{
			return Integer.parseInt(read());
		}

		public Long readLong()
		{
			return Long.parseLong(read());
		}
	}
}