import sys readline = sys.stdin.readline s = readline() n = len(s) - 2 num = int(s[:3]) if num == 999: a = '1.0' n += 1 else: if num % 10 == 9: num += 1 s = str(num) if num % 10 >= 5: a = s[0] + '.' + str(int(s[1]) + 1) else: a = s[0] + '.' + s[1] print(a + '*10^' + str(n))