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