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 PYTHON):

Solution:
#!/usr/bin/python

import os
import sys
import itertools
from decimal import *


def solve(f):
    x = f.read_str()

    if x.find('.') == -1: x += '.'
    s = x.split('.')

    s[0] = s[0].lstrip('0')
    s[1] = s[1].rstrip('0')

    if s[0] == '':
        before = s[1]
        after = s[1].lstrip('0')
        b = len(after)-len(before)-1
        a = after if len(after) == 1 else after[0] + "." + after[1:]
    elif s[1] == '':
        before = s[0]
        after = s[0].rstrip('0')
        a = after if len(after) == 1 else after[0] + "." + after[1:]
        b = len(before) - 1
    else:
        b = len(s[0]) - 1
        st = s[0]+s[1]
        a = st[0] + '.' + st[1:]

    if b == 0:
        return a
    else:
        return "%sE%d"%(a,b)


class Reader(object):
    def __init__(self, filename=None):
        self.test_mode = filename is not None
        self.cases = 1
        self.buffer = []
        if self.test_mode:
            with open(filename) as f:
                blank_flg = False
                for line in f:
                    line = line.strip()
                    if line:
                        self.buffer.append(line)
                        blank_flg = False
                    else:
                        if not blank_flg: self.cases += 1
                        blank_flg = True

    def __readline(self):
        return self.buffer.pop(0) if self.test_mode else raw_input()

    def read_int(self):
        return int(self.__readline())
    def read_float(self):
        return float(self.__readline())
    def read_long(self):
        return long(self.__readline())
    def read_str(self):
        return self.__readline()

    def read_int_list(self):
        return [int(item) for item in self.__readline().split()]
    def read_float_list(self):
        return [float(item) for item in self.__readline().split()]
    def read_long_list(self):
        return [long(item) for item in self.__readline().split()]
    def read_str_list(self):
        return self.__readline().split()

if __name__ == '__main__':
    filename = sys.argv[1] if len(sys.argv)>1 else None
    f = Reader(filename)
    if f.test_mode:
        for c in xrange(f.cases):
            print "Case #%d"%(c+1)
            print solve(f)
    else:
        print solve(f)