

zen=map(str,input().split())
for s in zen:
  zen=s[::-1]
  print(zen,end=" ")

560c756c6eda4e005a8b776a1371d5b0bb4606df
<mask token>

<mask token>
for s in zen:
    zen = s[::-1]
    print(zen, end=' ')

zen = map(str, input().split())
for s in zen:
    zen = s[::-1]
    print(zen, end=' ')



zen=map(str,input().split())
for s in zen:
  zen=s[::-1]
  print(zen,end=" ")
