N = gets.chomp L = N.size S = N[0..2].chars.map(&:to_i) a = b = c = 0 c = L - 1 if S[2] <= 4 a = S[0] b = S[1] else if S[0] == 9 && S[1] == 9 a = 1 b = 0 c = L elsif S[1] == 9 a = S[0] + 1 b = 0 else a = S[0] b = S[1] + 1 end end puts "%d.%d*10^%d" % [a, b, c]