while True: try: a = input() b = [] # 存储英文字符 num = [] # 存储非英文字符原始位置 st = "" for i in range(len(a)): if (a[i] >= "A" and a[i] <= "Z") or (a[i] >= "a" and a[i] <= "z"): b.append(a[i]) else: num.append(i) b.sort(key=str.lower) for i in b: st = st + i # A Famous Saying: Much Ado About Nothing (2012/8). for i in num: st = st[:i] + a[i] + st[i:] print(st) except: break