{.checks: off, optimization: speed.} import strutils, algorithm stdin.readline.sorted(cmp).reversed.join("").echo