from decimal import Decimal, ROUND_HALF_UP def main(): N = input() core = int(N[:3]) round_n = int(Decimal(core).quantize(Decimal('1E1'), rounding=ROUND_HALF_UP)) if 995 <= core <= 999: ans_1 = 1.0 ans_2 = len(N) else: ans_1 = round_n / 10 ** 2 ans_2 = len(N) - 1 print(str(ans_1)+'*10^'+str(ans_2)) if __name__ == '__main__': main()