# -*- coding: utf-8 -*- from math import log10,floor from decimal import * s = input() k = len(s)-1 x = int(s[:3]) x /= 100 x = float(Decimal(str(x)).quantize(Decimal("1.0"))) if x>=10.0: x /= 10 k += 1 print("{}*10^{}".format(x,k))