def reverse(sh): 
  st = "" 
  for i in sh: 
    st = i + st
  return st
sh = input()
print (reverse(sh)) 

83119533479e2543e4cda56bb520ec5db74879ae
<mask token>

def reverse(sh):
    st = ''
    for i in sh:
        st = i + st
    return st


<mask token>

def reverse(sh):
    st = ''
    for i in sh:
        st = i + st
    return st


<mask token>
print(reverse(sh))

def reverse(sh):
    st = ''
    for i in sh:
        st = i + st
    return st


sh = input()
print(reverse(sh))

def reverse(sh): 
  st = "" 
  for i in sh: 
    st = i + st
  return st
sh = input()
print (reverse(sh)) 
