• + 0 comments

    if name == "main": intput_ = input() evenumbers = sorted([ ch for ch in intput_ if ch.isdigit() and int(ch)%2==0]) oddnumbers = sorted([ ch for ch in intput_ if ch.isdigit() and int(ch)%2!=0]) capital = sorted([ch for ch in intput_ if ch.isupper()]) letters = sorted([ch for ch in intput_ if ch.isalpha() and ch.islower()]) final = "".join(letters)+"".join(capital)+"".join(oddnumbers)+"".join(evenumbers) print(final)