#T559. 数位组合最大值

数位组合最大值

Description

Arbitrarily input a three-digit integer, then rearrange its digits to form a new three-digit integer that is the maximum possible value.

Input Format

The input consists of only one line, containing a single three-digit integer.

Output Format

The output consists of only one line, containing a single integer.

470

740

译文

CodesOnline