N = int(input()) n = str(N) if n[2] > '4': N += 10 ** (len(n) - 2) n = str(N) print(n[0], n[1], sep='.', end='*10^') print(len(n) - 1)