1896: 拼数(number)-2025-CSP-J

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description


Input

输入的第一行包含一个字符串 s,表示小 X 给小 R 的字符串。

Output

输出一行一个正整数,表示小 R 能拼成的正整数的最大值。

Sample Input Copy

290es1q0

Sample Output Copy

92100