def func(x):
    return ord(x.lower())

while True:
    try:
        a = input()
        b = []
        c = []
        for i in range(len(a)):
            if a[i].isalpha():
                b.append(a[i])
            else:
                c.append((i,a[i]))
        b = sorted(b,key=func)
        for i,j in c:
            b.insert(i,j)
        print(''.join(b))
    except:
        break