실버4 문제
N = int(input()) alist = list(map(int, input().split())) blist = list(map(int, input().split())) S = 0 for i in range(N): a = min(alist) b = max(blist) alist.remove(a) blist.remove(b) S = S + (a * b) print(S)