S = input() A = [] B = [] for c in S: if not c.isnumeric(): A.append(c) else: B.append(c) print(''.join(A[::-1] + B))