try: s = input() s = [[s[i:i+1], ord(s[i:i+1])] for i in range(len(s))] r = "" for k, _ in sorted(s, key=lambda x:x[1]): r += str(k) print(r) except: break