https://www.luogu.com.cn/problem/P5705
"""
P5705 【深基2.例7】数字反转(python3实现)方法一
https://www.luogu.com.cn/problem/P5705
"""
p=float(input())
q=int(p*10)
a=q//1000
b=q//100%10
c=q//10%10
d=q%10
print("%d"%d,end='.')
print(c,end='')
print(b,end='')
print(a,end='')