def main() -> typing.NoReturn:
    n = int(input())
    h = np.array(sys.stdin.readline().split(), dtype=np.int64)
    a = np.array(sys.stdin.readline().split(), dtype=np.int64)
    solve(n, h, a)
def main() -> typing.NoReturn:
    n = int(input())
    h = np.array(sys.stdin.readline().split(), dtype=np.int64)
    a = np.array(sys.stdin.readline().split(), dtype=np.int64)
    solve(n, h, a)