• + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    print("".join(sorted(input(), key=lambda x: (0 if x.islower() else 1 if x.isupper() else 2 if int(x) % 2 else 3, x))))