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.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringTokenizer;


public class C {

	public static void main(String[] args) throws IOException 
	{
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);

		char[] s = sc.next().toCharArray();
		int idx = 0;
		for(char c: s)
			if(c != '.')
				++idx;
			else
				break;
		if(idx == s.length)
		{	
			s = Arrays.copyOf(s, s.length + 1);
			s[s.length - 1] = '.';		
		}

		int start = 0, end = s.length - 1;
		int e = 0;
		for(int i = s.length - 1; i > idx && s[i] == '0'; --i)
			--end;

		for(int i = 0; i < s.length && (s[i] == '0' || s[i] == '.'); ++i)
			++start;


		if(start == s.length)
				out.println("0");
		else
		{		
			
			while(idx > start + 1) { ++e; swap(idx, idx-1, s); --idx; }

			while(idx < start + 1) { --e; swap(idx, idx + 1, s); ++idx; if(idx + 1 == start + 1) --start; } 

			while(end > idx && s[end] == '0')
				--end;
			
			if(end == idx)
				--end;

			StringBuilder ans = new StringBuilder();
			for(int i = start; i <= end; ++i)
				ans.append(s[i]);


			if(e != 0)
				ans.append('E').append(e);
			out.println(ans);

		}
		out.flush();
		out.close();
	}

	static void swap(int x, int y, char[] s)
	{
		char tmp = s[x];
		s[x] = s[y];
		s[y] = tmp;
	}

	static class Scanner 
	{
		StringTokenizer st;
		BufferedReader br;

		public Scanner(InputStream s){    br = new BufferedReader(new InputStreamReader(s));}

		public Scanner(FileReader r){    br = new BufferedReader(r);}

		public String next() throws IOException 
		{
			while (st == null || !st.hasMoreTokens()) 
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {return Integer.parseInt(next());}

		public long nextLong() throws IOException {return Long.parseLong(next());}

		public String nextLine() throws IOException {return br.readLine();}

		public double nextDouble() throws IOException
		{
			String x = next();
			StringBuilder sb = new StringBuilder("0");
			double res = 0, f = 1;
			boolean dec = false, neg = false;
			int start = 0;
			if(x.charAt(0) == '-')
			{
				neg = true;
				start++;
			}
			for(int i = start; i < x.length(); i++)
				if(x.charAt(i) == '.')
				{
					res = Long.parseLong(sb.toString());
					sb = new StringBuilder("0");
					dec = true;
				}
				else
				{
					sb.append(x.charAt(i));
					if(dec)
						f *= 10;
				}
			res += Long.parseLong(sb.toString()) / f;
			return res * (neg?-1:1);
		}

		public boolean ready() throws IOException {return br.ready();}


	}
}