a = raw_input() b = map(int, a) n=[] while b: smallest = min(b) n.append(smallest) b.remove(smallest) print print ''.join(map(str, n))