n,d=gets.split(" ").map{|e| e.to_i} xs=readlines.map{|e| e.to_i} xs2=xs.sort ans={} p1=0 p2=0 c1=0 hs={} while p1