S=input() A = '' B = '' for s in S: if s in '0123456789': B += s else: A += s print(A[::-1] + B)