Problem H: 排序(按绝对值排)

Problem H: 排序(按绝对值排)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

输入一行整数,按绝对值大小从大到小排列,绝对值一样的,负在排后面

Input

3 -2 -5 6

Output

6 -5 3 -2

Sample Input Copy

5 -5 -3 3

Sample Output Copy

5 -5 3 -3

HINT

a=list(map(int,input().split()))
a.sort(key=lambda x:(-abs(x),-x))
for i in a:
  print(i,end=" ")