#37815: python 紀錄


BensonDC (python戰士)

學校 : 不指定學校
編號 : 240921
來源 : [42.75.77.11]
最後登入時間 :
2025-09-09 07:58:17

n=int(input())
L=[int(x) for x in input().split()]
o=sorted([i for i in L if i%2==1],reverse=True)
e=sorted([i for i in L if i %2==0])
print(*e,*o)