s = input() z = '' for c in s: if c.isdigit(): z = z + c else: z = c + z print(z)