function compare(a,b){ return a-b; } function Main(input){ var d=input.split("\n"); var n=d[0]; var x=d[1].split(" "); var ary=[]; for(var i=0; i