# Reverse a string
text=raw_input("Enter a string of text to be reversed: ")
rtext=""
for x in text:
    rtext=x+rtext
print rtext
