from decimal import Decimal, ROUND_HALF_UP


def scientific_notation(nums: list[str]) -> str:
    nums_length = len(nums)

    if nums_length <= 1:
        return "".join(nums)
    a_str = "".join(nums[0:3])
    a = (Decimal(a_str) / Decimal("100")).quantize(
        Decimal("0.1"), rounding=ROUND_HALF_UP
    )

    c = nums_length - 1
    if a >= 10:
        a = a // 10
        c += 1

    b = str(10)

    return f"{a:.1f}*{b}^{c}"


if __name__ == "__main__":
    s = input().strip()
    res = scientific_notation(list(s))
    print(res)