The input is a single test case in the following format.
N
d1 d2 ... dN-1
g1 g2 ... gN
The first line contains an integer N (2≤N≤200,000), the number of houses. The second line contains N−1 integers separated by spaces. The i-th integer di (1≤di≤109, 1≤i≤N−1) is the carrying cost between house i and house i+1. The third line contains N integers separated by spaces. The i-th integer gi (1≤gi≤109, 1≤i≤N) is the growing cost of the field of house i.