S = input() small = [i for i in S if not i.isnumeric()] num = [i for i in S if i.isnumeric()] print("".join(small[::-1]) + "".join(num))