n=int(input()) a=list(map(int,input().split())) a.sort() b=[] for i in range(n-1): b.append((a[i],a[i+1])) from functools import cmp_to_key def c(x,y): x0,x1=x y0,y1=y if x0*y1>x1*y0: return 1 elif x0*y1