13 lines
249 B
Rust
13 lines
249 B
Rust
|
use std::io;
|
||
|
|
||
|
fn main() {
|
||
|
let mut s = String::new();
|
||
|
io::stdin().read_line(&mut s).unwrap();
|
||
|
|
||
|
let mut nums = s.trim().split('+').map(|d| String::from(d)).collect::<Vec<String>>();
|
||
|
|
||
|
nums.sort();
|
||
|
|
||
|
println!("{}", nums.join("+"));
|
||
|
}
|