N = int(input()) A = sorted(list(map(int, input().split()))) B = sorted(list(map(int, input().split()))) ans = set() ans_v = 0 for i in range(N - 1): ans_v += abs(A[i] - B[i]) now = ans_v ans = {A[N - 1]} for i in range(N - 2, -1, -1): # print(i, now, ans, A[i]) now -= abs(A[i] - B[i]) now += abs(A[i + 1] - B[i]) # print(i, A[i], now) if(now == ans_v): ans.add(A[i]) elif(now < ans_v): ans = {A[i]} ans_v = now print(len(ans)) print(*sorted(list(ans)))