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.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);
	
	public static void main(String[] args) {
		
		String s=sc.next();
		int len=s.length();
		int l=-1,m=-1,r=-1;
		for(int i=0;i<len;i++) {
			if(s.charAt(i)!='0') {
				l=i;
				break;
			}
		}
		for(int i=0;i<len;i++) {
			if(s.charAt(i)=='.') {
				m=i;
				break;
			}
		}
		for(int i=len-1;i>=0;i--) {
			if(s.charAt(i)!='0') {
				r=i;
				break;
			}
		}
		if(l==-1&&r==-1) {
			System.out.println(0);
		}
		else {
			String ss=s.substring(l,r+1);
			if(m==-1) {
				int c=len-1-l;
				if(c==0) {
					System.out.println(ss);
				}
				else{
					String sss=s.substring(l);
					int le=sss.length();int f=-1;
					for(int i=le-1;i>0;i--) {
						if(sss.charAt(i)!='0') {
							f=i;
							break;
						}
					}
					if(f==-1) {
						System.out.println(ss.charAt(0)+"E"+c);
					}
					else{
						System.out.print(sss.charAt(0)+"."+sss.substring(1,f+1)+"E"+c);
					}
				}
			}
			else if(m-l==1) {
				int ll=ss.length();
				if(ss.charAt(ll-1)=='.') System.out.println(ss.substring(0,ll-1));
				else System.out.println(ss);
			}
			else if(m==l){
			    int lee=ss.length();
			    int c=1;int f=-1;
			    for(int i=1;i<lee;i++) {
			    	if(ss.charAt(i)=='0') {
			    		c++;
			    	}
			    	else {
			    		f=i;
			    		break;
			    	}
			    }
			    if(f==-1) {
			    	System.out.println(0);
			    }
			    else {
			    	if(f==lee-1) {
			    		System.out.println(ss.charAt(f)+"E-"+c);
			    	}
			    	else {
			    		System.out.println(ss.charAt(f)+"."+ss.substring(f+1)+"E-"+c);
			    	}
			    }
			}
			else if(m==r){
				int c=m-l-1;
				String sss=ss.substring(1);
				int le=sss.length();int f=-1;
				for(int i=le-1;i>=0;i--) {
					if(sss.charAt(i)!='0'&&sss.charAt(i)!='.') {
						f=i;
						break;
					}
				}
				if(f==-1){
					System.out.println(ss.charAt(0)+"E"+c);
				}
				else {
					System.out.println(ss.charAt(0)+"."+sss.substring(0, f+1)+"E"+c);
				}
			}
			else {
				int lee=ss.length();
				for(int i=0;i<lee;i++) {
					if(ss.charAt(i)!='0') {
						l=i;
						break;
					}
				}
				for(int i=0;i<len;i++) {
					if(ss.charAt(i)=='.') {
						m=i;
						break;
					}
				}
				int c=m-l-1;
				System.out.println(ss.charAt(0)+"."+ss.substring(1,m)+ss.substring(m+1)+"E"+c);
			}
		}
	}

}