You are given two vectors v1=(x1,x2,…,xn) and v2=(y1,y2,…,yn). The scalar product of the two vectors is a single number, computed as x1y1+x2y2+⋯+xnyn.
You may permute the coordinates of each vector however you like. Choose two permutations that make the scalar product of the resulting vectors as small as possible, then print that minimum scalar product.