Xenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation.

The teacher has written down the sum of multiple numbers. Pupils should calculate the sum. To make the calculation easier, the sum only contains numbers 1, 2 and 3. Still, that isn't enough for Xenia. She is only beginning to count, so she can calculate a sum only if the summands follow in non-decreasing order. For example, she can't calculate sum 1+3+2+1 but she can calculate sums 1+1+2 and 3+3.

You've got the sum that was written on the board. Rearrange the summans and print the sum in such a way that Xenia can calculate the sum.


-----Input-----

The first line contains a non-empty string s — the sum Xenia needs to count. String s contains no spaces. It only contains digits and characters "+". Besides, string s is a correct sum of numbers 1, 2 and 3. String s is at most 100 characters long.


-----Output-----

Print the new sum that Xenia can count.


-----Examples-----
Input
3+2+1

Output
1+2+3

Input
1+1+3+1+3

Output
1+1+1+3+3

Input
2

Output
2

Difficulty: interview

Starter code:

Solutions:
s = input()
l = [int(x) for x in s.split('+')]
l.sort()
print('+'.join([str(x) for x in l]))


s = input()
sol = ''
sol += '1' * s.count('1')
sol += '2' * s.count('2')
sol += '3' * s.count('3')

print('+'.join(sol))


print('+'.join(map(str, sorted(list(map(int, input().split('+')))))))

s = sorted(list(map(int, input().split('+'))))
print('+'.join(list(map(str, s))))


a = list(map(int, input().split('+')))
a.sort()
print('+'.join(list(map(str, a))))

import sys
f = sys.stdin
#f = open("input.txt", "r")
a = [int(i) for i in f.readline().split("+")]
a.sort()
for i in range(len(a)-1):
    print(a[i], end="+")
print(a[-1])

import sys
s=input().split('+')

s.sort()

n=len(s)

for i in range(n-1):
    print(s[i],end='+')
print(s[n-1])
    
    



def __starting_point():
    inp = input()
    arr = inp.split('+')
    L = []
    for a in arr:
        L.append(int(a))
    L.sort()
    b = False
    ret = ''
    for l in L:
        if b:
            ret+='+'+str(l)
        else:
            ret+=str(l)
            b=True
    print(ret)
        

__starting_point()

str = input().split('+')
str.sort()
for r in range(len(str) - 1):
    print(str[r],end='')
    print('+', end='')
print(str[len(str) - 1])

l = input().split('+')
l = [int(x) for x in l]
l.sort()
l = [str(x) for x in l]
print('+'.join(l))

s = []
s = input().split('+')
s.sort()
for i in range(0,len(s)-1,1):
    print(s[i]+'+',end='')
print(s[-1])

s = list(map(int, input().split('+')))
s.sort()
print(s[0], end='')
for i in s[1:]:
    print('+', i, end='', sep='')


import sys

p=[int(x) for x in input().split('+')]
p.sort()
for i in range(len(p)-1):
	sys.stdout.write(str(p[i]))
	sys.stdout.write('+')
print(str(p[len(p)-1]))



def take():
    li = input().strip().split("+")
    l = sorted(li)
    print("+".join(l))
take()


s = list(map(int, input().split('+')))
s.sort()
print('+'.join(list(map(str, s))))

l = [int(x) for x in input().split('+')]
l.sort()
for x in l[:-1]:
    print(x, end='+')
print(l[len(l)-1])


import sys

line = sys.stdin.readline()[:-1]

a = line.split("+")

a.sort()

print("+".join(a))



s = input()
a1 = s.count('1')
a2 = s.count('2')
a3 = s.count('3')
if a3 == 0 and a2 == 0:
    print('1+' * (a1 - 1), '1', sep = '')
elif a3 == 0:
    print('1+' * a1, '2+' * (a2 - 1), '2', sep = '')
else:
    print('1+' * a1, '2+' * a2, '3+' * (a3 - 1), '3', sep = '')

s=list(map(str,input().split("+")))
while s.count("")!=0:
    s.remove("")
s.sort()
print("+".join(s))

a = [int(x) for x in input().split('+')]
a.sort()
print(*a, sep = '+')

arr = list(map(int, input().split('+')))
arr.sort()
for i in arr[:-1]:
    print(str(i), end='+')
print(arr[-1])


while(1):
    try:
        s=input()
        a=[]
        for i in range(0,len(s),2):
            a.append(int(s[i]))
        a.sort()
        for ele in a[:len(a)-1]:
            print(ele,end='+')
        print(a[-1])
    except EOFError:
        break
    
            
            

# -*- coding: utf-8 -*-

def solve(s):
    return '+'.join(map(str, sorted(list(map(int, s.split('+'))))))

tmp = input()
print(solve(tmp))


data = input().split("+")
data = [int(x) for x in data]
ones = 0
twos = 0
threes = 0
for number in data:
	if number == 1:
		ones += 1
	elif number == 2:
		twos += 1
	elif number == 3:
		threes += 1
ans = ""
for i in range(ones):
	ans += '1'
	ans += '+'
for i in range(twos):
	ans += '2'
	ans += '+'
for i in range(threes):
	ans += '3'
	ans += '+'
ans = ans[:-1]
print(ans)