<reponame>seunghwanly/CODING-TEST<gh_stars>0
def solution(n):
    return int(''.join(sorted(list(str(n)), reverse=True)))

print(solution(118372))
def solution(n):
    return int(''.join(sorted(list(str(n)), reverse=True)))

print(solution(118372))