""" Here is my coding space Caffeineholic ) ) ) ( ( ( ████╗ < 2 hot! ████║ ████╝ """ S = input() A = [] B= [] for c in S: try: B.append(str(int(c))) except: A.append(c) print("".join(A[::-1]) + "".join(B))