#列表自定義排序 #python3傳遞的排序函數返回的是表明自身相對位置的數值 def cmp(x): return abs(x) alist=list(map(int,input().split())) b = sorted(alist, key=cmp) print(b)