S = input() A = [] B = [] for c in S: if "0" <= c <= "9": B.append(c) else: A.append(c) print("".join(reversed(A)) + "".join(B))