begin
var n := ReadInteger;
n := n.ToString.SortedDescending.JoinIntoString.ToInteger;
n.Println
end.
begin
var n := ReadInteger;
n := n.ToString.SortedDescending.JoinIntoString.ToInteger;
n.Println
end.
3074185287543210