using System;
using System.Linq;
class Program
{
static void Main() {
int n = 81925;
try {
string s = n.ToString();
s = String.Concat(s.OrderByDescending(ch => ch));
n = Int32.Parse(s);
Console.WriteLine(n);
}
catch (FormatException e) {
Console.WriteLine(e.Message);
}
}
}
/*
run:
98521
*/