Codeforces Round 197 (Div. 2)
A
Helpful Maths
Codeforces
800
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
3+2+1
Output #1
1+2+3
InputCopy OutputCopy
Input #2
1+1+3+1+3
Output #2
1+1+1+3+3
InputCopy OutputCopy
Input #3
2
Output #3
2
InputCopy OutputCopy
题目信息
题号
339A
时间限制
2 s
内存限制
256 MB
标签
贪心
模拟
排序
字符串

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。