• + 0 comments
    x = input()
    lowercase_letters = ''.join(sorted([char for char in x if char.islower()]))
    upper_letters = ''.join(sorted([char for char in x if char.isupper()]))
    odd_digits = ''.join(sorted([char for char in x if char.isdigit() and int(char)%2 != 0]  ))
    even_digits = ''.join(sorted([char for char in x if char.isdigit() and int(char)%2 == 0]  ))
    print( lowercase_letters + upper_letters + odd_digits  + even_digits)