while True: try: string1=list(map(str,input())) string1.reverse() s=''.join(string1) print(s) except: break