N=int(input()) A=list(map(int, input().split())) B=list(map(int, input().split())) L,R=[],[] e=0 for i in range(N): e+=abs(A[i]-B[i]) if A[i]>B[i]: L.append(i) elif A[i]