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

15f8d3bce4900fc2a144354c8e7cfa3a4e3a6fbb
<mask token>

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

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

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