New Quest — Letter Frequency Sort
Early summer fills the Dorpat printing house with ink and lilac air. Liina asks Mihkel to measure which letters her pages use most. The printers use the result to understand their dwindling type stock.
On the input tape, you’ll get a string consisting of a-z letters. Your task is to output each distinct letter exactly once, sorted by how often it appears in the input.

