• + 0 comments
    string1 = list(str(input()))
    listx = list()
    [listx.append(i) for i in sorted(string1) if(i.islower())]
    [listx.append(i) for i in sorted(string1) if(i.isupper())]
    [listx.append(i) for i in sorted(string1) if( i.isdigit() and int(i)%2 != 0 )]
    [listx.append(i) for i in sorted(string1) if( i.isdigit() and int(i)%2 == 0 )]
    print("".join(listx))