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

public class Main3 {
    public static String trimZeroes(String s){
        int start = 0;
        for(char c : s.toCharArray()){
            if(c == '0'){
                start++;
            }
            else{
                break;
            }
        }

        int end = s.length();
        for(int i = end - 1; i>=0; i--){
            if(s.charAt(i) == '0'){
                end--;
            }
            else{
                break;
            }
        }
        return s.substring(start, end);
    }

    public static String rightTrim(String s){
        int end = s.length();
        for(int i = end - 1; i>=0; i--){
            if(s.charAt(i) == '0'){
                end--;
            }
            else{
                break;
            }
        }
        return s.substring(0, end);
    }

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = sc.next();

        if(!line.contains(".")) line = line + ".";

        line = trimZeroes(line);

        String whole = "??";
        String decimal = "??";
        if(line.charAt(0) == '.'){
            whole = "";
            decimal = line.substring(1);
        }
        else if(line.charAt(line.length() - 1) == '.'){
            decimal = "";
            whole = line.substring(0, line.length()-1);
        }
        else{
            String[] split = line.split("\\.");
            whole = split[0];
            decimal = split[1];
        }

        int E = whole.length();
        if(E == 0){
            if(decimal.length() == 0){
                System.out.println(0);
                System.exit(0);
            }
            else{
                for(char c : decimal.toCharArray()){
                    E--;
                    if(c != '0') break;
                }
                int index = Math.abs(E) - 1;
                String first = "" + decimal.charAt(index);
                String second = decimal.substring(index+1, decimal.length());
                if(second.length() == 0){
                    System.out.println(first + "E" + E);
                    System.exit(0);
                }
                else{
                    System.out.println(first + "." + second + "E" + E);
                    System.exit(0);
                }
            }
        }
        else{
            E--;
            String first = "" + whole.charAt(0);
            String second = whole.substring(1) + decimal;
            boolean containNonZero = false;
            for(char c : second.toCharArray()){
                if(c != '0'){
                    containNonZero = true;
                    break;
                }
            }
            if(containNonZero){
                second = rightTrim(second);
                if(E == 0){
                    System.out.println(first + "." + second);
                    System.exit(0);
                }
                else {
                    System.out.println(first + "." + second + "E" + E);
                    System.exit(0);
                }
            }
            else{
                if(E == 0){
                    System.out.println(first);
                }
                else {
                    System.out.println(first + "E" + E);
                    System.exit(0);
                }
            }
        }
    }
}