1825 最最大


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

以数字串的形式给定一个大整数,请给出该大整数的所有位数字所组成的最大数。

Input

一些正整数N(N的位数<200)。

Output

对于每个输入的正整数,以一行的形式输出由该数中数字所构成的最大数。

Sample

Input

12325
6

Output

53221
6

Source: qn


Comments

There are no comments at the moment.