# Reverse  computes the reversal of a string
#  input: a string
#  output:  a string that is the input with letters reversed

word = raw_input("Type a string: ")
answer = ""

count = 0  # which character we examine in  input

while  count < len(word) :
    letter = word[count]
    answer = letter + answer
    count = count + 1

print answer

raw_input("Press Enter")