• + 0 comments

    s = input()

    lowercase = sorted([c for c in s if c.islower()]) uppercase = sorted([c for c in s if c.isupper()]) odd = sorted([c for c in s if c.isdigit() and int(c)%2 !=0]) even = sorted([c for c in s if c.isdigit() and int(c)%2 ==0])

    sorted_s = ''.join(lowercase+uppercase+odd+even) print(sorted_s)