# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
s = input()
lower = upper = odd = even = str()

for i in s:
    if i.isalpha():
        if i==i.lower():
            lower += i
        else:
            upper += i
        
    elif i.isnumeric():
        if int(i)%2 != 0:
            odd += i
        else:
            even += i
            
result = ''.join(sorted(lower)+sorted(upper)+sorted(odd)+sorted(even))
print(result)
# -

import string
l = f'{string.ascii_lowercase}{string.ascii_uppercase}{1357902468}'
print(*sorted(input(), key=l.index), sep ="")



StarcoderdataJupyterScriptsDedupFiltered