s=gets
9.downto(0){|n|s.count(n.to_s).times{print n}}
puts