#abc242b. [abc242_b]Minimize Ordering

[abc242_b]Minimize Ordering

Problem Statement

You are given a string SS. Find the lexicographically smallest string SS' obtained by permuting the characters of SS.

Here, for different two strings s=s1s2ldotssns = s_1 s_2 \\ldots s_n and t=t1t2ldotstmt = t_1 t_2 \\ldots t_m, sltts \\lt t holds lexicographically when one of the conditions below is satisfied.

  • There is an integer i(1leqileqmin(n,m))i\\ (1 \\leq i \\leq \\min(n,m)) such that silttis_i \\lt t_i and sj=tjs_j=t_j for all integers j(1leqjlti)j\\ (1 \\leq j \\lt i).
  • si=tis_i = t_i for all integers i(1leqileqmin(n,m))i\\ (1 \\leq i \\leq \\min(n,m)), and nltmn \\lt m.

Constraints

  • SS is a string of length between 11 and 2times1052 \\times 10^5 (inclusive) consisting of lowercase English letters.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the lexicographically smallest string SS' obtained by permuting the characters in SS.


Sample Input 1

aba

Sample Output 1

aab

Three strings can be obtained by permuting aba:

  • aba
  • aab
  • baa

The lexicographically smallest among them is aab.


Sample Input 2

zzzz

Sample Output 2

zzzz