a = int(input())
k = 0
while a > 0:
    m = a % 10
    k = k * 10 + m
    a = a // 10
print(k)

668a5fc9e22e71c11b50cc4697c3411cdaca6631
<mask token>

<mask token>
while a > 0:
    m = a % 10
    k = k * 10 + m
    a = a // 10
print(k)

a = int(input())
k = 0
while a > 0:
    m = a % 10
    k = k * 10 + m
    a = a // 10
print(k)
