a = float(input())

formatted_x = format(a, ".3f")

print(formatted_x)

本题需要使用format(n,".3f"),设置输出格式