s=list(input()) s.sort(reverse=True) ans="" for x in s: ans+=x print(ans)