A = input() C = list(A) A = int(A) B = len(C) def my_round(val, digit=0): p = 10 ** digit return (val * p * 2 + 1) // 2 / p print(int(my_round(A, -(B-2)))) D=int(my_round(A, -(B-2))) D=(D/(10**(B-1))) print(str(D)+"*"+str(10)+"^"+str(B-1))