You are viewing a single comment's thread. Return to all comments →
print("".join(sorted(list(input()),key= lambda x : (-x.islower() ,-x.isupper(), int(x) % 2 == 0 if x.isdigit() else None,x))))
Seems like cookies are disabled on this browser, please enable them to open this website
ginortS
You are viewing a single comment's thread. Return to all comments →