• + 0 comments

    p = input() low = sorted([x for x in p if x.islower()]) uper = sorted([x for x in p if x.isupper()]) di = sorted([x for x in p if x.isdigit()]) digit = sorted([x for x in di if x.isdigit()], key=lambda x : int(x)%2 == 0) print("".join(low + uper + digit))